Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # remove_accents.py
- import unicodedata
- def removeAccentedChars(s):
- return unicodedata.normalize('NFKD',s).encode('ascii','ignore')
- print removeAccentedChars(u"aaàöÜ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement