Ubuntu Eclipse MyEclipse 添加GBK支持 不乱码

2025-11-04 00:27:15阅读量:8 字体:

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

在文件中添加

执行

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

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

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

推荐阅读