当前位置: 代码迷 >> 综合 >> python学习之 requests爬虫导致的中文乱码
  详细解决方案

python学习之 requests爬虫导致的中文乱码

热度:70   发布时间:2024-01-18 23:31:11.0

首先是官方文档

Compliance

Requests is intended to be compliant with all relevant specifications and RFCs where that compliance will not cause difficulties for users. This attention to the specification can lead to some behaviour that may seem unusual to those not familiar with the relevant specification.

Encodings

When you receive a response, Requests makes a guess at the encoding to use for decoding the response when you access the 

  相关解决方案