UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa5 in position 1517: illegal multibyte sequence

报错:UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa5 in position 1517: illegal multibyte sequence

数据读取的时候报错:
在这里插入图片描述
读取模式改为utf-8
在这里插入图片描述
解决

有时候还有更鬼畜的,比如我今天遇到ANSI的要用记事本打开看看到底是用的什么编码

猜你喜欢

转载自blog.csdn.net/CSDNXXCQ/article/details/113308626