Force enc det to return utf-8 rather than nothing
This commit is contained in:
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…
x
Reference in New Issue
Block a user