UnicodeDecodeError: 'gbk' codec can't decode byte 0xbc in position 21: illegal multibyte
Posted ReedyLi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UnicodeDecodeError: 'gbk' codec can't decode byte 0xbc in position 21: illegal multibyte相关的知识,希望对你有一定的参考价值。
Save the txt with UTF format and then open the file with f1 = open(path, encoding = \'utf\')
以上是关于UnicodeDecodeError: 'gbk' codec can't decode byte 0xbc in position 21: illegal multibyte的主要内容,如果未能解决你的问题,请参考以下文章
python编码问题:UnicodeDecodeError: 'gbk' codec can't decode
python UnicodeDecodeError: 'ascii' codec can't decode byte ...
UnicodeDecodeError: 'ascii' codec can't decode byte错误解决方案
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd