Skip to content

Instantly share code, notes, and snippets.

@math2001
Last active February 2, 2017 07:10
Show Gist options
  • Save math2001/907a27aba9d38ca6cb146c3cf06b97ee to your computer and use it in GitHub Desktop.
Save math2001/907a27aba9d38ca6cb146c3cf06b97ee to your computer and use it in GitHub Desktop.
# 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