diff --git a/doc/THANKS b/doc/THANKS index 88d041875..0ba252976 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -128,6 +128,9 @@ Daniel G. Gamonal Marcos Mateos Garcia for reporting a minor bug +Andrew Gecse + for reporting a minor issue + Ivan Giacomelli for reporting a bug for suggesting a minor enhancement diff --git a/lib/request/basic.py b/lib/request/basic.py index 949753f83..a0109399f 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -118,6 +118,8 @@ def checkCharEncoding(encoding): encoding = 'cp%s' % encoding[3:] elif encoding.startswith('windows') and not encoding.startswith('windows-'): 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 if encoding in translate: