Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. jaraco@host:~$ cat > test.py
  2. uni = u"\u001A\u0BC3\u1451\U0001D10C"
  3. print uni
  4. jaraco@host:~$ python2.7 ./test.py > out.txt
  5. Traceback (most recent call last):
  6. File "./test.py", line 2, in <module>
  7. print uni
  8. UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement