分享 itjsbook itjster LinkedIn itjspin Email sudo gedit /var/lib/locales/supported.d/local 在文件中添加 执行 然后在输出的结果中会出现 这样, Ubuntu就支持GBK编码了, 下面设置eclipse。 首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 假如没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了。 上一篇 下一篇