Eclipse设置UTF-8
将Eclipse所有的设置都设置为UTF-8:
1) Window -> Preferences -> General -> Workspace -> Text file encoding,选择Other选项的UTF-8
2) Window -> Preferences -> General -> Content Types 选择Text,下边Default encoding写为:UTF-8,点Update按钮。
展开Text,把"Java Properties File"、"JSP"的"ISO-8859-1"统统设置为UTF-8
3) Window -> Preferences -> Web -> JSP Files -> Encoding选择ISO 10646/Unicode(UTF-8),点Apply按钮