#no_accents #http://warriordudimanche.net def no_accents(string): replacements=[ (u"é","e"), (u"ê","e"), (u"è","e"), (u"ë","e"), (u"ô","o"), (u"ó","o"), (u"ù","u"), (u"ú","u"), (u"û","u"), (u"ü","u"), (u"î","i"), (u"ï","i"), (u"í","i"), (u"â","a"), (u"à","a"), (u"á","a"), (u"ä","a"), (u"ñ","n") ] for a, b in replacements: string = string.replace(a, b) return string