Python3 使用requests请求,解码时出错:'utf8' codec can't decode byte 0x83 in position 1: invalid start byte
摘要:requests请求的响应内容能够通过几个属性获得: response.text 为解码之后的内容,解码会根据响应的HTTP Header中的Content-Type选择字符集。例如 1 "'Content-Type': 'text/html;charset=UTF-8'" 1 "'Content-
阅读全文
posted @
2019-06-02 15:18
画入新雪
阅读(2686)
推荐(2) 编辑