'gbk' codec can't decode byte 0x94 in position 41:illegal multibyte sequence

来源:互联网 发布:熊猫tv淘宝买的竹子 编辑:程序博客网 时间:2024/05/18 03:47

UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 41:illegal multibyte sequence

文件重新保存一下为utf-8

fp = open('C:\\Users\\Administrator\\Desktop\\film2.txt','rb')
content = fp.read().decode('utf-8')

阅读全文
0 0
原创粉丝点击