From c60ebb40b274ce259fb97fc3380801a1cc4e3fae Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Mon, 9 May 2011 15:58:17 +0200 Subject: [PATCH] fix for ticket 155 --- openlp/plugins/songs/lib/songbeamerimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/songbeamerimport.py b/openlp/plugins/songs/lib/songbeamerimport.py index 5a8ee9ca8..861ec2e99 100644 --- a/openlp/plugins/songs/lib/songbeamerimport.py +++ b/openlp/plugins/songs/lib/songbeamerimport.py @@ -92,7 +92,7 @@ class SongBeamerImport(SongImport): file_name = os.path.split(file)[1] if os.path.isfile(file): detect_file = open(file, u'r') - details = chardet.detect(detect_file.read(2048)) + details = chardet.detect(detect_file.read()) detect_file.close() infile = codecs.open(file, u'r', details['encoding']) songData = infile.readlines()