convert Unicode filenames to good-looking ASCII

Iliya u53730 at gmail.com
Thu May 6 12:22:41 EDT 2010


Try smth like this:

import unicodedata

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



More information about the Python-list mailing list