UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 13: invalid continuation byte
时间: 2023-08-26 12:18:39 浏览: 87
这个错误的原因是在使用utf-8编码时,遇到了一个无法解码的字节0xce。在Python中,UnicodeDecodeError通常指示编码不匹配或无效的字符。这个错误通常是由于文本中包含无法被使用的编码方式解码的字符所引起的。在你提供的例子中,编码错误是在使用utf-8解码时遇到了字节0xce,这是一个无效的连续字节。要解决这个问题,你可以尝试更改编码方式,例如使用'gb2312'来解码数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xca in position 0: invalid continuation ...](https://blog.csdn.net/weixin_43789661/article/details/121518544)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 0: invalid continuation byte...](https://blog.csdn.net/liuxiang15/article/details/103067189)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文