Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

non.ascii characters in property files

10 views
Skip to first unread message

Marit

unread,
Mar 15, 2007, 5:47:32 AM3/15/07
to

I want to make my application multi-lingual. I use ResourceBundle to resource locale-spesific strings into res.properties file.
When I create a res_zh_TW.properties file (trad. chinese), and replace the latin characters in the strings with chinese characters, my application do not display this characters properly.
I have the correct fonts installed. The encoding is set to UTF8 in project properties. The .properties file is stored in UTF8 format.

When I convert the .properties file by using native2ascii, the chinese characters in the .properties are converted to unicode escape chars, and the chars are displayed perfect. The disadvantige here is that I need to have two .properties files. One for the translater, and one that the application use.

Is there a way to make the application understand the chinese characters in a .properties file without converting them to unicode escape chars?

0 new messages