1,Windows--Preferences--General--Content Types--将Java Class File和Text的Default encoding 改为UTF-8---UPDATA
2,Windows--Preferences--General--Workspace---将Text file encoding改为UTF-8
3,右键点击项目--Preferences--Resource--将Text file encoding改为UTF-8,
最后不行,再重启myeclipse
转载于:https://my.oschina.net/u/3715963/blog/1841292