on 10-18-2007 5:04 AM
Hi,
I have requirements to fetch data from chinese language properties file in JSPDynpage Project.
File "<b>ChinData_zh.properties</b>":
TEXT = 绿
When I fetch data from properties file using resource bundle in JSPdynpage I am always getting junk character.
<b>Code snippet for fetching:</b>
ResourceBundle rb = ResourceBundle.getBundle("ChinData_zh", Locale.SIMPLIFIED_CHINESE);
texts = rb.getString("TEXT").
Kindly me out in getting the actual chinese character.
thanks in advance...
Hello,
Do not paste Chinese characters in your properties file. Get the <b>unicode</b> equivalent. There are many sites on the net where you can freely convert it.
e.g. your entry should be /u7EFF
Visit http://people.w3.org/rishida/scripts/uniview/conversion.php
And there is no need for you to give 2 parameters for getBundle(). Just your resource bundle name should suffice.
Hope this helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.