Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jaraco@host:~$ cat > test.py
uni = u"\u001A\u0BC3\u1451\U0001D10C"
print uni
jaraco@host:~$ python2.7 ./test.py > out.txt
Traceback (most recent call last):
File "./test.py", line 2, in <module>
print uni
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.