Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
jaraco@host:~$ cat >
uni = u"\u001A\u0BC3\u1451\U0001D10C"
print uni
jaraco@host:~$ python2.7 ./ > out.txt
Traceback (most recent call last):
File "./", 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