Last active
February 6, 2016 20:18
-
-
Save victorvaz/82b37026d90c25ea1181 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
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice man!