struts资源文件乱码在MyEclipse下的解决方法

发表于: java/j2ee | 作者: darkmi | 日期: 2010/08/12 08:00
标签: struts, myeclipse
字号:

MyEclipse Properties Editor 中有两个标签页:Properties 标签页和 Source标签页。直接在 Source标签页中添加中文不会被自动转码,切记。正确的方法是在 Properties 标签页中添加一行配置后,点击保存按钮,中文就会被自动转码。

有了 MyEclipse Properties Editor, 下面的命令基本就可以压箱底了。

native2ascii -encoding GBK ApplicationResources.properties ApplicationResources_xx.properties

切换主题切换主题
返回顶部