标签:
把Windows下的工程导入到了Linux下Eclipse中,由于以前的工程代码,都是GBK编码的(Windows下的Eclipse 默认会去读取系统的编码,所以Widnwos下的Eclipse的编码为GBK),而Ubuntu默认是不支持GBK编码的。所以,首先我们要先让 Ubuntu支持GBK,方法如下:
这样, Ubuntu就支持GBK编码了, 下面开始设置eclipse,
首先选择eclipse菜单栏中的
Windows->Preferences, 然后选择General下面的Workspace, Text file
encoding下选择Other GBK,如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文,
已经不是乱码了。
标签:
原文地址:http://www.cnblogs.com/tonglin0325/p/5183432.html