UnicodeDecodeError: 'gbk' codec can't decode byte 0x88 in position 148: illegal multibyte sequence
时间: 2023-09-26 07:10:50 浏览: 85
basemap readshapefile UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 0-附件资源
UnicodeDecodeError: 'gbk' codec can't decode byte 0x88 in position 148: illegal multibyte sequence是一个编码解码错误。该错误通常发生在尝试将某个编码类型的字符串解码为Unicode时,出现了非法的多字节序列。这个错误可能会在读取文件、解析HTML或其他操作中发生。解决这个错误的方法是使用正确的编码类型来解码字符串。你可以尝试使用utf-8编码来替代gbk编码,因为utf-8是一种更通用的编码类型,支持更多的字符。在读取文件或处理字符串时,确保使用正确的编码类型,可以避免这个错误的发生。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [关于UnicodeDecodeError: 'gbk' codec can't decode byte的解决办法](https://blog.csdn.net/qq_29592829/article/details/71598664)[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* [pyquery报错:UnicodeDecodeError: ‘gbk’ codec can’t decode byte](https://download.csdn.net/download/weixin_38665944/13751270)[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 ]
阅读全文