django - scrapy data not encoded correctly in python -


i'm using scrapy web crawling using python. while scraping have characters not encoded correctly '\xa0','\x0259'. how can handle them in python?

you can use unicode string type (http://docs.python.org/2/tutorial/introduction.html#unicode-strings) prepending instances of characters these u. example u'\xa0' , u'\x0259'. unicode-strings python docs provide other methods encoding , decoding these strings , characters.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -