如果要使新建立工程或者导入工程、java文件直接使用utf-8则需要做一下几个工作
需要设置的几处地方为:
1 Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8
2 Window->Preferences->General->Workspace 面板Text file encoding 选择UTF-8
3 Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)
4 且jsp中的pageEncoding、contentType都为utf-8
详见点击打开链接