Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
obo-kb
Posts: 30
Registered: ‎03-24-2011
My Carrier: sfr

How to manage foreign languages in localization files

Hi all !

 

Here is my problem : my application is internationalized and some of the languages used are Hindou, Chinese, Japanase, Korean, Russian with specific characters.

 

I edited my .rrc files under osx very well and saved them in my svn.

 

than I checkouted them into my eclipse project under windows xp but now I have some compilation errors reported in the .rrc files (the ones for the listed languages with specific characters). Errors dealing with unrecognized characters.

 

I do not want to modify them now, just use them at the compilation and packaging time to generate my cod. So why these errors ?

 

Is there a way to correct this issue ?

Please use plain text.
Developer
simon_hain
Posts: 13,804
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: How to manage foreign languages in localization files

most likely you did not adhere to the specific format of the rrc files.

they are saved in ANSI, special characters are encoded in unicode (like \u1234).

 

depending on the size of your files these solutions may help you:

- create new rrc files and copy the strings using the eclipse editor

- analyse the files, remove invalid characters and check the encoding

 

we did some in-depth analysis and have working desktop java software that creates valid rrc files, but took a full day to come this far. using the built-in editor is much easier :smileyhappy:

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.