解决python3 UnicodeEncodeError: 'gbk' codec can't encode character '\xXX' in

从网上抓了一些字节流,想打印出来结果发生了一下错误:

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

能很好的解决问题

但每次都要添加很麻烦,希望有人在能解决

上一篇:ALSA driver---Asoc Machine/platform/Codec register flow


下一篇:logstash写入kakfa数据丢失的问题