1、在项目上右键找属性--》Resource 中设置encoding为gbk,如果不行再执行第二步
2、Windows-----general------Content Types 中 选择 Text-----javaSourceFile 把下面的default encoding 设置为GBK 并 update 就行了
另外如果CVS或者SVN资源文件中有中文的文件夹出现乱码,Windows--showView ---找到cvs资源窗口,右键属性设置Server Encoding 设置为GBK 即可