Guest User

Untitled

a guest
Dec 14th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import unicodedata
  2.  
  3. def normalize_string(string):
  4. if isinstance(string, str):
  5. nfkd_form = unicodedata.normalize('NFKD', string.lower())
  6. return nfkd_form.encode('ASCII', 'ignore').decode('utf-8')
Add Comment
Please, Sign In to add comment