转自http://5--1000.iteye.com/blog/606349 文件默认编码设置: Window -> preference, 左边 General -> Content Types, 然后在右边上面的框中打开Text, 选中Java Source File, 然后在下面的“Default edcodng”文本框中输入“UTF-8”, 点“Update”,就OK了。