important fix for a bug reported by x <deep_freeze@mail.ru> (along with normal fixes, getUnicode now uses kb.pageEncoding)

This commit is contained in:
Miroslav Stampar
2011-01-03 22:02:58 +00:00
parent 572f403069
commit 08ccbf2c1e
5 changed files with 22 additions and 16 deletions

View File

@@ -132,7 +132,8 @@ def decodePage(page, contentEncoding, contentType):
charset = checkCharEncoding(contentType.split('charset=')[-1])
if charset:
page = getUnicode(page, charset)
kb.pageEncoding = charset
page = getUnicode(page)
return page