Remove accents from python string

PHOTO EMBED

Sun Jan 23 2022 13:31:13 GMT+0000 (UTC)

Saved by @jmbenedetto #python

import unicodedata

def strip_accents(s):
    return ''.join(c for c in unicodedata.normalize('NFD', s)
                   if unicodedata.category(c) != 'Mn')
content_copyCOPY

https://stackoverflow.com/a/518232