lzhdim

默认情况下 Eclipse 字符集为 GBK,但现在很多项目采用的是 UTF-8,这是我们就需要设置我们的 Eclipse 开发环境字符集为 UTF-8, 设置步骤如下:

在菜单栏选择 Window -> Preferences -> General -> Workspace -> Text file encoding,在 Text file encoding 中点击 Other,选择 UTF-8,如图所示:

 

1 篇笔记 写笔记

  1.    心灵彼岸

      191***4901@qq.com

    如果用到 JSP,也可以修改 JSP 字符编码,左边窗口

    Window -> Preferences -> Web -> JSP Files

    右边窗口:

    Encoding:ISO-10646/Unicode(UTF-8)

    Apply-Apply and Close

分类:

技术点:

相关文章: