Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

J2ME internationalization

Thread view: 
Chameleon - 15 Oct 2006 16:16 GMT
I want to provide the binary with *only one* language, because I want to
be as small as I can.

But I want to provide many binaries (one per language).

So, I write the code with hardcoded strings like "$_nearest_dist_$".
I write a file like:
-----english.ini----
$_nearest_dist_$=Nearest distance is 90m
--------------------
and I write a php script which in *.java files, replaces all strings in
form "$_*_$" with language correct string.
php phpWriteStringsToSource.php <project_folder> <language.ini>

THE BIG PROBLEM: I realize that *.java files must have ansi* encoding!
Any of utf-8, uc16le or be is not compiled correct!

So, what I can do?
Daniel Dyer - 15 Oct 2006 16:24 GMT
> THE BIG PROBLEM: I realize that *.java files must have ansi* encoding!  
> Any of utf-8, uc16le or be is not compiled correct!
>
> So, what I can do?

Not true, take a look at the -encoding switch for javac.

Dan.

Signature

Daniel Dyer
http://www.uncommons.org



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.