def remove_accents(s): nkfd_form = unicodedata.normalize('NFKD', s) return u''.join([c for c in nkfd_form if not unicodedata.combining(c)])