Created
February 28, 2019 00:04
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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