阅读背景:

utf - 8编码,查字典

来源:互联网 

I have written a web-scraper using Scrapy, grabbing some data to complementing my current information I have about a couple of companies. Before I print out the records I want to match them against my old records. Hence, I have created a dictionary with a company name as key and values are some related data. The problem I have is with the encoding, the Test_of_company.csv is encoded in UTF-8 (I encoded it and converted it to UTF-8 in notepad++). I keep getting the exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 67: invalid continuation byte. Since the I have written a web-scraper using Scrapy, grab




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: