Skip to content

Instantly share code, notes, and snippets.

@viniciusban
Last active August 29, 2015 14:03
Show Gist options
  • Save viniciusban/a0496a9bc087f49599e2 to your computer and use it in GitHub Desktop.
Save viniciusban/a0496a9bc087f49599e2 to your computer and use it in GitHub Desktop.
tirar acentos de uma string
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