utils.py 166 Bytes
Newer Older
1
2
import unicodedata

alexandre.jauneau's avatar
alexandre.jauneau committed
3

4
def strip_accents(value):
alexandre.jauneau's avatar
alexandre.jauneau committed
5
6
7
    return ''.join(
        c for c in unicodedata.normalize('NFD', value)
        if unicodedata.category(c) != 'Mn')