Created
June 29, 2018 18:25
-
-
Save himlohiya/a7b8b26969e05b0fb578cae5c77006b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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