python csv模块使用时遇到'gbk' codec can't decode byte 0xaa in position 6713: illegal multibyte sequence 或者 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 305: invalid continuation byte这种时,
一般都是utf-8的问题,但是有时候死活解决不了,遇到这样的话,将文本用notepad++打开,然后编码选项中选择utf-8即可
相关文章
- 11-10python 3以上版本使用pickle.load读取文件报UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 6
- 11-10python:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xef in position xxx: ordinal not in range(128)
- 11-10解决Requests中文乱码【有用】,读取htm文件 读取txt文件报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0
- 11-10解决错误UnicodeDecodeError: 'gb2312' codec can't decode byte 0x8b in position 1: illegal
- 11-10UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 357: illegal multi
- 11-10UnicodeDecodeError gbk codec can't decode byte in position illegal multibyte sequence
- 11-10UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 190: illegal multi
- 11-10解决UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 129: illegal multibyte sequence
- 11-10UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa6 in position 34: illegal multibyte sequence
- 11-10UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa7 in position 213: illegal multibyte sequence