Skip to content

Instantly share code, notes, and snippets.

@binarygalwalkin
Created February 28, 2019 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binarygalwalkin/5e7830f34a8d89d5b1f22cc1e0944bb8 to your computer and use it in GitHub Desktop.
Save binarygalwalkin/5e7830f34a8d89d5b1f22cc1e0944bb8 to your computer and use it in GitHub Desktop.
ascii() returns a string containing a printable representation of an object and escape the non-ASCII characters in the string using \x, \u or \U escapes.
ascii("¥")
#Output : '\xa5'
ascii("µ")
#Output : '\xb5'
ascii("Ë")
#Output : '\xcb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment