- 错误提示:
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 802: illegal multibyte sequence
- 解决办法:
file = open("filename", 'rb')
content = file.read().decode("utf-8)
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 802: illegal multibyte sequence
file = open("filename", 'rb')
content = file.read().decode("utf-8)