I've read several SO questions and blog posts on how python deals with unicode, but I'm still a bit confused. I was scraping through scrapy and got this from a web page: u'Isla de Se\xf1orita'
. It should be u'Isla de Señorita'
. I know I can do something like..
>>> u"ñ"
u'\xf1'
>>> u"ñ".encode("utf-8")
'\xc3\xb1'
But what am I supposed to do with this? Can I get u"ñ"
back out of these bytes? I just want the ñ so that I can save it to a field in a django model. Thanks.