response.read().decode() UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc6 in position 80: i

错误提示

info = response.read().decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 80: invalid continuation byte

解决方案

info = response.read().decode("utf8","ignore")

猜你喜欢

转载自blog.csdn.net/Stybill_LV_/article/details/111261333