python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il
Posted qmjy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il相关的知识,希望对你有一定的参考价值。
python读取文件时提示"UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x80 in position 205: illegal multibyte sequence"
解决办法1.
FILE_OBJECT= open(‘order.log‘,‘r‘, encoding=‘UTF-8‘)
解决办法2.
FILE_OBJECT= open(‘order.log‘,‘rb‘)
本文转自
↓↓↓↓↓↓↓↓↓↓↓↓↓↓
以上是关于python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il的主要内容,如果未能解决你的问题,请参考以下文章
python 读取文件时报错: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 127:
python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il
python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il
python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: il
pandas读取csv文件时报错:ParserError: Error tokenizing data. C error