crawler: fix chinese encoding support

master
pictuga 2020-05-27 21:34:43 +02:00
parent 4ccc0dafcd
commit dcfdb75a15
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class GZIPHandler(BaseHandler):
def detect_encoding(data, resp=None): def detect_encoding(data, resp=None):
enc = detect_raw_encoding(data, resp) enc = detect_raw_encoding(data, resp)
if enc == 'gb2312': if enc.lower() == 'gb2312':
enc = 'gbk' enc = 'gbk'
return enc return enc