Skip to content

Instantly share code, notes, and snippets.

@public
Created January 9, 2015 13:01
Show Gist options
  • Save public/6781548d99298f351138 to your computer and use it in GitHub Desktop.
Save public/6781548d99298f351138 to your computer and use it in GitHub Desktop.
>>> b64encode(b'\xbe'.encode('utf-8'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbe in position 0: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment