fix for a charset encoding reported by Kirill

This commit is contained in:
Miroslav Stampar 2011-04-04 18:20:09 +00:00
parent a1bde071d8
commit 018b6b9430

View File

@ -103,7 +103,9 @@ def checkCharEncoding(encoding):
# popular typos/errors
if '8858' in encoding:
encoding = encoding.replace('8858', '8859')
encoding = encoding.replace('8858', '8859') # iso-8858 -> iso-8859
elif '2313' in encoding:
encoding = encoding.replace('2313', '2312') # gb2313 -> gb2312
if encoding.startswith('8859'):
encoding = 'iso-%s' % encoding