Skip to content

Instantly share code, notes, and snippets.

@juliosmelo
Last active August 29, 2015 14:17
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 juliosmelo/cee59c3131ca80494e61 to your computer and use it in GitHub Desktop.
Save juliosmelo/cee59c3131ca80494e61 to your computer and use it in GitHub Desktop.
from unicodedata import normalize
nome = u'Júlio Mélo'
novo_nome = normalize('NFKD', nome).encode('ASCII', 'ignore')
print(novo_nome)
'Julio Melo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment