Skip to content

Instantly share code, notes, and snippets.

@victorvaz
Last active February 6, 2016 20:18
Show Gist options
  • Save victorvaz/82b37026d90c25ea1181 to your computer and use it in GitHub Desktop.
Save victorvaz/82b37026d90c25ea1181 to your computer and use it in GitHub Desktop.
from unicodedata import normalize
class TextUtil :
"""
Classe com métodos para tratamento de texto
"""
def removerCaracteresEspeciais (self, text) :
"""
Método para remover caracteres especiais do texto
"""
return normalize('NFKD', text).encode('ASCII', 'ignore').decode('ASCII')
@jovanimoura
Copy link

Nice man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment