JBOSS 点滴

丰丰的博客

ECLIPSE插件安装,防乱码

eclipse classic 是eclipse的标准版:标准版;

Eclipse Classic的带有source

建议使用Eclipse Classic,需要插件自己安装配置即可

安装相应插件:
1.安装wtp,方便web开发
打开菜单help->Install new Software,单击“add..”按钮,弹出框的name和location都填入“http://download.eclipse.org/webtools/updates/”,等待一会,勾选“Web Tools Platform (WTP) 3.1.2”

2.安装“java decompiler”
打开菜单help->Install new Software,单击“add..”按钮,弹出框的name和location都填入“http://java.decompiler.free.fr/jd-eclipse/update”,等待一会,勾选“Java Decompiler Eclipse Plug-in”,按向导进行安装。

相关配置:
1.统一设置为utf-8编码,Window->Preferences->General->Workspace->Text file encoding->Other->UTF-8。

2.修改jsp等默认编码为utf-8,打开Window->Preferences->Web->Jsp Files,修改右面的encoding为(utf-8)。

3.统一设置为utf-8编码,Window->Preferences->General->Content Types,在右面选择“Text”,在default encoding输入“UTF-8”,点“update”按钮更新。

经过配置后,所有的新建的java、jsp、txt、html、xml、文件夹等编码都是utf-8,这样在jsp、html等文件中设定编码为utf-8,可以避免乱码。

posted on 2012-12-06 15:10 半导体 阅读(299) 评论(0)  编辑  收藏 所属分类: Eclipse


只有注册用户登录后才能发表评论。


网站导航: