Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement