Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unicodedata
- def normalize_string(string):
- if isinstance(string, str):
- nfkd_form = unicodedata.normalize('NFKD', string.lower())
- return nfkd_form.encode('ASCII', 'ignore').decode('utf-8')
Add Comment
Please, Sign In to add comment