python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence

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')

 

posted on 2017-03-29 11:38  梦雨情殇  阅读(510350)  评论(12编辑  收藏

导航