fix for ticket 155

bzr-revno: 1530
This commit is contained in:
Andreas Preikschat 2011-05-10 13:15:54 +02:00
commit a042ef1132
1 changed files with 1 additions and 1 deletions

View File

@ -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()