Guest User

Untitled

a guest
Jan 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def remove_accents(str):
  2. nkfd_form = unicodedata.normalize('NFKD', unicode(str))
  3. only_ascii = nkfd_form.encode('ASCII', 'ignore')
  4. return only_ascii
Add Comment
Please, Sign In to add comment