UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 132: invalid start byte
时间: 2023-09-21 10:09:59 浏览: 132
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 2: invalid continuation byte-附件资源
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 0: invalid start byte表示在尝试使用utf-8编解码时出现了错误。解决这个问题的方法是手动生成一个新的txt文件,并将原来的txt文件另存为utf-8编码格式。这样做可以确保文件被正确地编码并且可以被正确地解码。如果问题仍然存在,可能是由于文件中包含了其他无效的字节。可以尝试使用其他编码格式进行解码,或者检查文件是否被正确创建。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xbe in position 0: invalid start byte](https://blog.csdn.net/qq_41725313/article/details/124727610)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 2: invalid continuation byte-...](https://download.csdn.net/download/weixin_42204453/15589184)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文