I have a unicode string with accented latin chars e.g.
n=unicode(\'Wikipédia, le projet d’encyclopédie\',\'utf-8\')
I want to convert it to
The awesome unidecode module does this for you:
>>> import unidecode >>> n = unicode('Wikipédia, le projet d’encyclopédie','utf-8') >>> unidecode.unidecode(n) "Wikipedia, le projet d'encyclopedie"