forked from openlp/openlp
added fallback to retieve_windows encoding
This commit is contained in:
parent
1fb0048def
commit
87e7fcdbda
@ -212,8 +212,4 @@ class SongShowPlusImport(SongImport):
|
||||
try:
|
||||
return unicode(data, chardet.detect(data)['encoding'])
|
||||
except:
|
||||
while True:
|
||||
try:
|
||||
return unicode(data, self.encoding)
|
||||
except:
|
||||
self.encoding = retrieve_windows_encoding()
|
||||
return unicode(data, u'cp1252')
|
Loading…
Reference in New Issue
Block a user