forked from openlp/openlp
reinstate retrieve_windows_encoding dialog
This commit is contained in:
parent
d724a6c872
commit
7cc9f9ae7b
|
@ -227,4 +227,9 @@ class SongShowPlusImport(SongImport):
|
|||
try:
|
||||
return unicode(data, chardet.detect(data)['encoding'])
|
||||
except:
|
||||
return unicode(data, u'cp1252')
|
||||
self.encoding = u'cp1252'
|
||||
while self.encoding:
|
||||
try:
|
||||
return unicode(data, self.encoding)
|
||||
except:
|
||||
self.encoding = retrieve_windows_encoding()
|
||||
|
|
Loading…
Reference in New Issue