高分请教Eclipse 3.0.1中编辑js及properties等文件中文乱码问题

ragweed_wg 2006-01-10 01:07:55
高温请教Eclipse 3.0.1中编辑js及properties等文件中文乱码问题

输入的中文保存后,再打开便是乱码
...全文
217 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
chrisl8080 2006-07-06
  • 打赏
  • 举报
回复
mark
chense 2006-01-11
  • 打赏
  • 举报
回复
properties文件乱码可以用下面的插件解决:
---------------------------------------------------------
Properties Editor

安装方法:
1、Please choose from the screen of Eclipse with "Help" ->"Software Updates" -> "Update Manager". An 'Update Manager' opens.


2、In the "Feature Updates" view at the lower left of an 'Update Manager', please carry out the right click of the "Sites to Visit", and create a site bookmark by "New" -> "Site Bookmark...".
- The bookmark to create should input the following "URL" and should push an "Finish" button.
Name: Arbitrary input
URL : http://propedit.sourceforge.jp/eclipse/updates/
Bookmark type: Eclipse update site


3、If a site bookmark is created, the bookmark created at the bottom of "Feature Updates" will appear.
A click of "jp.gr.java_conf.ussiy.app.propedit.eclipse.feature.PropertiesEditorFeature x.x.x" displays a preview on a right window. Since the button "Install Now" is in around the lower right, please click.


4、Since an installation wizard starts, please click a "Next" button rapidly.


5、"You will need to restart the workbench for the changes to take effect. Would you like to restart now?" is displayed. Please reboot Eclipse according to a dialog.

安装好后properties文件会变成一个绿色的P,这时直接输中文保存就可以了!
xiaobzg 2006-01-11
  • 打赏
  • 举报
回复
自己写
ragweed_wg 2006-01-11
  • 打赏
  • 举报
回复
OK,改为UTF-8后,原js文件中的中文依旧乱码,但重新清空、拷贝代码后,中文可以保存并正常显示了。
ragweed_wg 2006-01-11
  • 打赏
  • 举报
回复
文件属性的文件编码中没有GBK选项,缺省为“ISO-8859-1”,改为“UTF-8”也无效。
xiaobzg 2006-01-10
  • 打赏
  • 举报
回复
文件->属性->文件编码(Text file encoding),设置为GBK
Little_qd 2006-01-10
  • 打赏
  • 举报
回复
建议用对应的插件编辑
或者用外部编辑器

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧