码迷,mamicode.com
首页 > Web开发 > 详细

UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 9865: illegal multibyte sequence 解决办法

时间:2017-12-27 19:37:58      阅读:1015      评论:0      收藏:0      [点我收藏+]

标签:character   gpo   python3   cte   char   overflow   sequence   .com   question   

解决办法 ;

a=r.text.replace(‘\xa0‘,‘ ‘)

详情参见
https://stackoverflow.com/questions/10993612/python-removing-xa0-from-string
http://www.aobosir.com/blog/2016/11/26/python3-UnicodeEncodeError-gbk-codec-can‘t-encode-character-xa0/

UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 9865: illegal multibyte sequence 解决办法

标签:character   gpo   python3   cte   char   overflow   sequence   .com   question   

原文地址:https://www.cnblogs.com/huchaoheng/p/8127267.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!