pydev在eclipse里面的输出中文乱码的解决方案

2007年三月6日 由 贝贝爸 Leave a reply »

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

输出
涓枃

看了一下帮助,eclipse console default的encoding是GBK,需要设置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.

Popularity: 29%

相关文章

Advertisement

Leave a Reply