Last active
August 29, 2015 14:03
-
-
Save viniciusban/a0496a9bc087f49599e2 to your computer and use it in GitHub Desktop.
tirar acentos de uma string
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
from unicodedata import normalize | |
def tira_acentos(s): | |
return normalize("NFKD", s.decode("utf-8")).encode("ASCII", "ignore") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment