minor patch

This commit is contained in:
Miroslav Stampar
2011-08-16 06:22:04 +00:00
parent 262996fc5b
commit 600ef3eace
2 changed files with 4 additions and 1 deletions

View File

@@ -135,7 +135,7 @@ def checkCharEncoding(encoding):
# http://philip.html5.org/data/charsets-2.html
if encoding in translate:
encoding = translate[encoding]
elif encoding == 'null':
elif encoding in ('null', '{charset}'):
return None
# http://www.iana.org/assignments/character-sets