pydev在eclipse里面的输出,怎么显示中文?

pydev在eclipse里面的输出,怎么显示中文?

#!/usr/bin/python
# -*- coding: utf-8 -*-
print "中文"

输出
涓?枃
改成

[Copy to clipboard] [ - ]
CODE:
#!/usr/bin/python
# -*- coding: utf-8 -*-
print u"中文"

直接在命令行窗口下执行可以,在pydev中run就不行
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

pydev创建的文件编码是utf-8

自己看了一下帮助。。

eclipse console default的encoding是GBK,
写成

[Copy to clipboard] [ - ]
CODE:
#!/usr/bin/python
# -*- coding: GBK -*-
print "中文"

就可以,
如果写成

[Copy to clipboard] [ - ]
CODE:
#!/usr/bin/python
# -*- coding: utf-8 -*-
print "中文"

需要设置console的encoding为utf-8

方法
Console encoding
The console can be configured to display output using a character encoding different from the default encoding. To set the console encoding for an application, use the Console Encoding settings on the Common tab of a launch configuration.
字符集问题啊,,,烦!!!!!!!!!
我把console改称utf-8还是不行,晕阿
我在windows下一般都设置成 cp936
pyshell和pycrust是不是不支持中文输入?
我只好用sctie