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:
|
try:
|
||||||
return unicode(data, chardet.detect(data)['encoding'])
|
return unicode(data, chardet.detect(data)['encoding'])
|
||||||
except:
|
except:
|
||||||
while True:
|
return unicode(data, u'cp1252')
|
||||||
try:
|
|
||||||
return unicode(data, self.encoding)
|
|
||||||
except:
|
|
||||||
self.encoding = retrieve_windows_encoding()
|
|
Loading…
Reference in New Issue
Block a user