Ubuntu Eclipse MyEclipse 添加GBK支持 不乱码
电脑办公
2025-11-04 00:27:15
热度:6℃
sudo gedit /var/lib/locales/supported.d/local
在文件中添加
执行
然后在输出的结果中会出现
这样, Ubuntu就支持GBK编码了, 下面设置eclipse。
首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 假如没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了。









