eclipse 设置默认编码为Utf-8

时间:2023-01-05 10:37:35

1.  Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8

 2. Window->Preferences->General->Workspace   面板Text file encoding 选择UTF-8

 3. Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)


(另外) 

    windows->Preferences...打开"首选项"对话框,左侧导航树,导航到general->Content Types,右侧Context Types树,点开Text中每一颗子项,并在中输入"UTF-8",点update!

    其他java应用开发相关的文件如:properties、XML等已经由Eclipse缺省指定,分别为ISO8859-1,UTF-8,如开发中确需改变编码


本文出自 “Exist” 博客,请务必保留此出处http://exist.blog.51cto.com/10305882/1949168