Skip to content

Instantly share code, notes, and snippets.

@adsr303
Created November 7, 2017 15:29
Show Gist options
  • Save adsr303/3ce91506e378ae7bf40b1faaf22357fc to your computer and use it in GitHub Desktop.
Save adsr303/3ce91506e378ae7bf40b1faaf22357fc to your computer and use it in GitHub Desktop.
# Transliterate Unicode to ASCII
print(unicodedata.normalize('NFKD', 'bździągwa').encode('ascii', 'ignore').decode())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment