Eclipse必须设置编码格式的几个地方
1.工作空间编码格式 Windows——preference——Workspace——other(设置为UTF-8) 这种编码格式对整个工作空间的文件都有效
2.window -> Preferences -> general -> Workspac -> Text file encoding ->java source file(设置为utf-8)
3. Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8
4.设置tomcat的编码