当前位置:网站首页>UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence

UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence

2022-07-07 22:26:00 Happy learning Python

         Start learning to read files today , Trying to read EXCEL(xlsx) When “UnicodeDecodeError: 'gbk' codec can't decode byte 0xf9 in position 56: illegal multibyte sequence” Error message .

hold EXCEL Format changed to .cvs After format , Can read successfully .

        But here's the thing , You cannot change the suffix directly , You need to save the file as modified .

原网站

版权声明
本文为[Happy learning Python]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130606000557.html