myeclipse/eclipse中properties编码问题

在开发前期,我们通常会对一些数据库参数进行配置

我是使用properties文件,当想添加一些注释的时候,突然发现输入中文后,自动变成:/U4041类似这种格式的

其实是编码的问题,为了让他显示出中文,我们需要一个插件:propedit。

我们将其下载下来之后,会有两个文件:

myeclipse/eclipse中properties编码问题myeclipse/eclipse中properties编码问题

我们打开myeclipse/eclipse安装目录。

不懂的右键点快捷方式属性,

myeclipse/eclipse中properties编码问题myeclipse/eclipse中properties编码问题

然后打开文件,会看到以下文件:

myeclipse/eclipse中properties编码问题myeclipse/eclipse中properties编码问题

接下来只要把插件的那两个文件放到这里面去,重启一下myeclipse/eclipse就可以了。


下面是额外的:windows->preferences

myeclipse/eclipse中properties编码问题myeclipse/eclipse中properties编码问题