Eclipse开发web项目的文件编码设置

时间:2014-03-01 04:48:11   收藏:0   阅读:601
有几种方式设置编码:
1.Window-Preferences-General-Workspace

2.Window-Preferences-General-Editors-Text Editors-Spelling

3.右击左侧Package Explorer中相应的工程或者文件-Properties-Resource

4.Window-Preferences-General-Content Types

5.Myeclipse Enterprise Workbench-Files and Editors-JSP...


实验得:优先级由高到低是3-1-2

最高的是在文件中指定编码,比如xml文件中、jsp页面中指定该文件的编码方式。

注意:(1) Window-Preferences-General-Content Types下也有设置编码的选项。此处是从文件类型的角度设置编码,不同后缀名的文件采用各自的编码

(2) ansi (iso-8859-1)到utf-8转换正常,utf-8转ansi则有问题(推荐用notepad++,myeclipse,dreamweaver分别打开,看是否有问题)


Eclipse开发web项目的文件编码设置,布布扣,bubuko.com

原文:http://blog.csdn.net/kingzone_2008/article/details/20121851

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!