将eclipse的编码设置成UTF-8

时间:2023-01-05 11:14:13

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按钮