cancel
Showing results for 
Search instead for 
Did you mean: 

Chinese property file in EP Project

Former Member
0 Kudos

Hi,

I have requirements to fetch data from chinese language properties file in JSPDynpage Project.

File "<b>ChinData_zh.properties</b>":

TEXT = &#32511;

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...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.