1. 程式人生 > >UnicodeEncodeError: 'gbk' codec can't encode character 'xa0' in position 1987: illegal multibyte sequence

UnicodeEncodeError: 'gbk' codec can't encode character 'xa0' in position 1987: illegal multibyte sequence

url rac char nco gbk illegal 問題 pos pan

在爬取

  url = "http://stats.meizhou.gov.cn/show/index/1543/1689"

時出現了問題:

UnicodeEncodeError: gbk codec cant encode character \xa0 in position 1987: illegal multibyte sequence

解決方案: (待解決)

UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position 1987: illegal multibyte sequence