fix for a bug reported by shaohua pan (UnicodeDecodeError: 'ascii' codec can't decode...)

This commit is contained in:
Miroslav Stampar
2011-01-04 12:51:51 +00:00
parent d288c6d6e3
commit 709a7d156b
2 changed files with 3 additions and 1 deletions

View File

@@ -134,6 +134,8 @@ def decodePage(page, contentEncoding, contentType):
if charset:
kb.pageEncoding = charset
page = getUnicode(page)
else:
page = getUnicode(page)
return page