Last active
February 2, 2017 07:10
-
-
Save math2001/907a27aba9d38ca6cb146c3cf06b97ee to your computer and use it in GitHub Desktop.
This file contains 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
# working in Python 3.4.0 | |
unicodes = 'é ✞ ✗ 👨' | |
print(unicodes) | |
print(unicodes.encode()) | |
print(repr(unicodes)) | |
print(b'\xc3\xa9 \xe2\x9c\x9e \xe2\x9c\x97 \xf0\x9f\x91\xa8'.decode()) | |
# and, weirdly, not working in 3.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment