win系统中,默认编码都是GBK。但在eclipse的开发使用中,编码格式经常使用的是UTF-8,一个项目组尽量编码格式统一,避免造成乱码。
Window--Preferences--General--Workspace下,面板"Text file encoding" 选择UTF-8格式
Window--Preferences--General --Content Type--Text的最下面设置编码格式为UTF-8
Window--Preferences--Web--JSP Files 面板选择 ISO 10646/Unicode(UTF-8)格式编码,此处以jsp为例,其他雷同
选择项目--右键---Properties ---Resource 设置编码为UTF-8格式
Window -- Preferences -- General -- Editors -- Text Editors -- Spelling,设置编码格式为UTF-8