UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 7: ordinal not in range(128)
时间: 2023-08-26 12:15:19 浏览: 163
这个报错是由于Python默认采用的是ascii编码方式,在进行编码转换时,尝试将ascii编码字符串转换成unicode编码时发生了错误。由于unicode编码只能表示128个字符,所以当遇到超出范围的字符时会报出这个错误。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe9 in position 0: ordinal not in range(128)](https://blog.csdn.net/yyj_me/article/details/106142901)[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]
- *3* [UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xef in position 0: ordinal not in range(128](https://blog.csdn.net/leviopku/article/details/124101115)[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]
[ .reference_list ]
阅读全文