Force enc det to return utf-8 rather than nothing

master
pictuga 2015-03-24 23:22:56 +08:00
parent 2e3b766a0a
commit 29d9e4702f
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def detect_encoding(data, con=None):
if match:
return match.groups()[0].lower().decode()
return None
return 'utf-8'
class EncodingFixHandler(BaseHandler):