cancel
Showing results for 
Search instead for 
Did you mean: 

Chinese language ISO code

Former Member
0 Kudos

Hello Everybody,

I want to make my application chinese language dependant.

I have apended _ZH behind all my resource files.

Now I have three questions:

1. What is the correct ISO code for Chinese?

2. If ZH is right ISO code, When I deply my application and I look in content administrator-> my application and resource text tab, I cannot see resource bundle generetade for ZH ISO code. Why it is not showing ZH resource bundle?

3. How can I specify Chinese caracters in my resource file in my Developer studio. When I tried to copy and paste Chinese characters in resource file. It was shown as boxes instead of actual characters. Please suggest me.

I will really appriciate your inputs.

Regards,

Bhavik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bhavik,

1. I don't know whether or not it could be the reason, but actually zh is ISO language code and ZH is ISO country code. So try to change case of letters

2. All property files must have only ASCII characters. Please use utility native2ascii to convert property files from native OS encoding to escaped ASCII encoding (where every char is kind of \u123)

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi Valery,

Thanks for your reply.

Can you please explain it little bit more?

If you give me steps then it would be helpful.

Thanks

Bhavik

Former Member
0 Kudos

Bhavik,

Never tried this with Chineese language but done several times for Russian and German:

1. OS is configured to store files in "native" locale (say Win1251 for Russian, Win1252 for German and many other European languages)

2. Just create property file via some editor that stores characters using OS encoding (like notepad)

3. Then in your JDK installation find utility <JDK_DIR>\bin\native2ascii

4. Run native2ascii original_file.properties > target_file_with_ascii_only_symbols.properties

As an example, here is output for "Hello, World!" in Russian:


hello.world=u041fu0440u0438u0432u0435u0442, u041cu0438u0440!

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Answers (0)