/ Published in: Python
Expand |
Embed | Plain Text
import unicodedata def removeAccentedChars(s): return unicodedata.normalize('NFKD',s).encode('ascii','ignore') print removeAccentedChars(u"aaàöÜ")
You need to login to post a comment.
import unicodedata def removeAccentedChars(s): return unicodedata.normalize('NFKD',s).encode('ascii','ignore') print removeAccentedChars(u"aaàöÜ")
You need to login to post a comment.