随笔-61  评论-159  文章-0  trackbacks-0
在国际化中messages_zh_CN.properties文件配置中,要进行本地字符和Unicode转换,利用properties editor插件事半功倍。
1、用properties editor打开messages_zh_CN.properties,加入:
label.username=用户名
label.password=密码
label.welcome=欢迎您{0}
2、再用properties file editor打开就会看到自动Unicode转换。
messages_zh_CN.properties显示为:
label.username=\u7528\u6237\u540d
label.password=\u5bc6\u7801
label.welcome=\u6b22\u8fce\u60a8{0}



-------------------------------------------------------------------------------------------------
PS:本博客文章,如果没有注明是有“转”字样,属于本人原创。如果需要转载,务必注明作者文章的详细出处地址,否则不允许转载,多谢合作!
posted on 2007-10-03 10:18 apple0668 阅读(1640) 评论(0)  编辑  收藏 所属分类: eclipse

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


网站导航: