系统配置字符 eclipse、myeclipse

2016-11-21  本文已影响6人  Aberstin

查看系统配置字符类型:

public static void main(String[] args){
    
    Properties pro = System.getProperties();
    System.out.println(pro.getProperty("file.encoding"));
}

(步骤:1、2、3、5)(步骤:4 没有尝试过)

1、Windows>>Pereferences>>Workspace>>Text File Encoding选项下选择other,然后输入"UTF-8"
2、Windows>>Pereferences>>General>Editors>>Spelling>>Encoding选项下选择other,然后输入"UTF-8"
3、Run->Run Configurations->Common->Console Encoding->Other->UTF-8
4、找到eclipse安装目录下的configuration文件夹删除除config.ini文件的所有文件夹,然后再重启动eclipse
5、在Myeclipse的安装目录中找到myeclipse.ini文件,打开---》添加相应代码:
-Dfile.encoding=gbk

上一篇 下一篇

猜你喜欢

热点阅读