EncodeError with \\xa3 (pound sign)
I'm trying to get some data from a web page. This webpage has stated that charset is utf-8. But there is a problem with \xa3 sign. I can't be encoded or decoded into/from 'utf-8'. for key,value in self.__dict__.iteritems(): if key not in self.db_attributes: print repr(value) attrs_statement+=str(key)+', ' values_statement+=str(value)+', ' ERROR: u'\xa3410' Traceback (most recent call last): File "C:\Users\Milano\My Documents\LiClipse Workspace\Velvet_scraper\vehicle.py", line 432, in <module> v.prepare_insert_statement('motorhog_temp') File "C:\Users\Milano\My Documents\LiClipse Workspace