jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Sublime Build System Unicode error #155

Closed twz915 closed 9 years ago

twz915 commented 9 years ago
# -*- coding: utf-8 -*-
a = u'你好'
b = u'世界'
print a+b

Ctrl(Cmd) + B,sublime told me: Traceback (most recent call last): File "/Users/tu/tmp/tmp.py", line 4, in print a+b UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) [Finished in 0.5s with exit code 1] but the code is right when python it on shell

twz915 commented 9 years ago

https://github.com/SublimeTextIssues/Core/issues/1004