将Eclipse所有的设置都设置为UTF-8格式,以方便开发使用。

来源:互联网 发布:linux单用户模式怎么进 编辑:程序博客网 时间:2024/06/04 17:45
  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按钮
阅读全文
0 0
原创粉丝点击