Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unicodedata
- city = "České Budějovice"
- normalized = unicodedata.normalize('NFD', city)
- new_city = u"".join([c for c in normalized if not unicodedata.combining(c)])
- print(new_city) # Ceske Budejovice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement