Force enc det to return utf-8 rather than nothing
parent
2e3b766a0a
commit
29d9e4702f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue