chg: dev: use utf8 as default decoder

This commit is contained in:
rachmadaniHaryono 2018-08-01 17:39:16 +08:00
parent 496238262f
commit 73c79beca5

View File

@ -2955,6 +2955,7 @@ def get_page_title(resp):
charset = 'utf-8'
try:
charset = 'utf-8'
if 'content-type' in resp.headers:
_, params = cgi.parse_header(resp.headers['content-type'])
if params.get('charset') is not None: