码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse 设置默认编码为Utf-8

时间:2017-07-20 11:31:59      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:eclipse 设置默认编码为utf-8

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

eclipse 设置默认编码为Utf-8

标签:eclipse 设置默认编码为utf-8

原文地址:http://exist.blog.51cto.com/10305882/1949168

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!