IT技术网www.itjs.cn

当前位置:首页 > 操作系统 > Linux > Ubuntu > Ubuntu Eclipse MyEclipse 添加GBK支持 不乱码

Ubuntu Eclipse MyEclipse 添加GBK支持 不乱码

发布时间:2005-01-01 00:20 来源:未知

sudo gedit /var/lib/locales/supported.d/local

在文件中添加

执行

然后在输出的结果中会出现

这样, Ubuntu就支持GBK编码了, 下面设置eclipse。

首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 假如没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了。