Py requests codec can't decode byte 0x8b to appear on the web page

from urllib.request import urlopen, urlcleanup, Request
url =" http://tech.qq.com/a/20181210."
request = Request (url)
response = urlopen (request)
content = response.read (). Decode ("gb2312")
urlcleanup ()

appears:
UnicodeDecodeError: "gb2312" codec can"t decode byte 0x8b in position 1: illegal multibyte sequence

how to solve this problem? I read a lot of materials on the Internet, all related to the request header
""Accept-Encoding":" gzip, deflate"", but to no avail.

Please help solve the problem ~
Thank you!

Jan.27,2022

Direct response.read (). Decode ()


content = response.read (). Decode ('gb2312',errors='ignore')




~
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35df6-2bfbe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35df6-2bfbe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?