fix for an issue reported by andrew.gecse@upcmail.hu (unknown web page charset 'hungarian-iso-8859-2')

This commit is contained in:
Miroslav Stampar 2011-04-30 22:41:54 +00:00
parent d5eeb91b35
commit 41fc9f9d54
2 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,9 @@ Daniel G. Gamonal <lgrecol@gmail.com>
Marcos Mateos Garcia <mmateos@germinus.com> Marcos Mateos Garcia <mmateos@germinus.com>
for reporting a minor bug for reporting a minor bug
Andrew Gecse <andrew.gecse@upcmail.hu>
for reporting a minor issue
Ivan Giacomelli <truemilk@insiberia.net> Ivan Giacomelli <truemilk@insiberia.net>
for reporting a bug for reporting a bug
for suggesting a minor enhancement for suggesting a minor enhancement

View File

@ -118,6 +118,8 @@ def checkCharEncoding(encoding):
encoding = 'cp%s' % encoding[3:] encoding = 'cp%s' % encoding[3:]
elif encoding.startswith('windows') and not encoding.startswith('windows-'): elif encoding.startswith('windows') and not encoding.startswith('windows-'):
encoding = 'windows-%s' % encoding[7:] encoding = 'windows-%s' % encoding[7:]
elif encoding.find('iso-88') > 0:
encoding = encoding[encoding.find('iso-88'):]
# http://philip.html5.org/data/charsets-2.html # http://philip.html5.org/data/charsets-2.html
if encoding in translate: if encoding in translate: