Skip to content

Instantly share code, notes, and snippets.

@himlohiya
Created June 29, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himlohiya/a7b8b26969e05b0fb578cae5c77006b7 to your computer and use it in GitHub Desktop.
Save himlohiya/a7b8b26969e05b0fb578cae5c77006b7 to your computer and use it in GitHub Desktop.
def remove_accented_chars(text):
text = unicodedata.normalize('NFKD', text).encode('ascii', 'ignore').decode('utf-8', 'ignore')
return text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment