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

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

你可能感兴趣的:('gbk' codec can't decode byte 0x94 in position 41:illegal multibyte sequence)