在國際化中messages_zh_CN.properties文件配置中,要進行本地字符和Unicode轉(zhuǎn)換,利用properties editor插件事半功倍。
1、用properties editor打開messages_zh_CN.properties,加入:
label.username=用戶名
label.password=密碼
label.welcome=歡迎您{0}
2、再用properties file editor打開就會看到自動Unicode轉(zhuǎn)換。
messages_zh_CN.properties顯示為:
label.username=\u7528\u6237\u540d
label.password=\u5bc6\u7801
label.welcome=\u6b22\u8fce\u60a8{0}
-------------------------------------------------------------------------------------------------
PS:本博客文章,如果沒有注明是有“轉(zhuǎn)”字樣,屬于本人原創(chuàng)。如果需要轉(zhuǎn)載,務(wù)必注明作者和文章的詳細出處地址,否則不允許轉(zhuǎn)載,多謝合作!
posted on 2007-10-03 10:18
apple0668 閱讀(1657)
評論(0) 編輯 收藏 所屬分類:
eclipse