解决python3 UnicodeEncodeError: 'gbk' codec can't encode character '\\xXX' in position XX
从网上抓了一些字节流,想打印出来结果发生了一下错误: UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 8530: illegal multibyte sequence 转自: https://blog.csdn.net/jim7424994/article/details/22675759?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task 能很好的解决问题 但每次都要添加很麻烦,希望有人在能解决 来源: https://www.cnblogs.com/chenxujin/p/12467242.html