Under win, there are some garbled code problems such as 95\ xb0\ xe6\ X8d\ xae\ xe5\ xba on Pycharm, which newcomers seek to solve.

under win, climb " http://www.itheima.com/teache. "on Pycharm with scrapy, and print out all garbled codes such as 95xb0xe6x8dxaexe5xbax93DBAxb4xe4xbb. The decode method used before is not effective, and the method of searching on the Internet is not effective. Some methods have no content output. What"s going on? The newcomer hopes that someone can answer it.

Aug.12,2021

this is not garbled, it is utf-8, transcoding input. Because Windows supports the default character set of gb2312, you can display it by changing the character set of utf8 to the character set of gb2312.

Menu