my eclipse --> window --> Preferences --> General --> Content Types --> Test --> 找到JSP或Java Properties File或...(这时要看你保存的是什么类型的文件)
在最下面修改为UTF-8格式,update 即可
my eclipse默认的编码方式为ISO-8859-1,写代码后,无法保存,提示some characters cannot be mapped using"ISO-8859-1",解决方法如下:
转载于:https://my.oschina.net/u/1271612/blog/174187