Skip to content

Instantly share code, notes, and snippets.

@neerajvashistha
Created May 5, 2017 12:45
Show Gist options
  • Save neerajvashistha/726d732ccfc475dbfa646ef7ec0c6459 to your computer and use it in GitHub Desktop.
Save neerajvashistha/726d732ccfc475dbfa646ef7ec0c6459 to your computer and use it in GitHub Desktop.
import unicodedata
my_text ="\U0001F602 and all of this \U0001F605"
for char in range(ord("\U0001F602"),ord("\U0001F64F")):
my_text=my_text.replace(chr(char),unicodedata.name(chr(char),"NOTHING"))
print(my_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment