# -*- 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
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