Hi John;
I've noticed some funny stuff about midlets and encodings. But
its unrelated to this. (I had to do a whole extra half days coding!)
But I have done a lot of UTF-8 stuff. Basically there's more than one way
in Java to do UTF-8 stuff. The most likely one to work it to use java's
native2ascii program to convert Chinese to Java's internal way of
representing UTF8. And then to use those strings.
To use native2ascii you need to know Java's official encoding for
the Chinese character set. There's a good chance there are 2 versions.
One I think is "Big5" and the other I think is simplified. (The capitalization
and spacing needs to be done properly though).
I do it all the time with SJIS. When we dealt with Korean in applets (not midlets)
we couldn't use native2ascii for some reason or other.
When I use native2ascii with SJIS I generally do
native2ascii -encoding SJIS inputFILEHERE OUTPUTFILE.properties
I believe this works with java files as well.
As for Japan, most of the time you can just compile the SJIS right in the code
without using native2ascii though and skip all that stuff.
The other way is when you read in UTF data, and the data is in real UTF-8 format,
but that doesn't sound too useful for what you need to do.
I'm not sure if this answers your question though.... but maybe it will help.
Of course maybe you guys have done this already.
I wish I was doing some Chinese stuff too! Cool!
John Whelan wrote:
> Hi,
>
> We are having difficulty porting an exitsing J2ME Midlet to Chinese and I
> wonder if anyobody has been through this before. we need to transalte the
> app for nokia Series 40 and Series 60.
>
> Initial problem is that when the following is the code fragment that I made
> a little change. "english text" is changed to "aaa{a chinese charactor}bbb".
> When I start the emulator and run the midlet, that place only display
> "aaabbb", no chinese charactor, even no space.
> Then we saw that according to message on Nokia bulletin board:" if you want
> to include Chinese characters in jad and manifest files, you must use utf-8
> encoding schema. Actually the localization work for S40 and S60 are same,
> but please note that currently the S60 phones don't support to download java
> applicstion via OTA if the java application including Chinese characters."
>
> Also seems that Nokia S60 emulators don't support display Chinese
> characters. But the 7210 emulator should support display Chinese provided
> you config the language setting correctly.
>
> However we don't know how to apply UTF-8 encoding schema as the above said,
> any ideas?
>
> Thanks indeed for any hlp.
>
> John Whelan
>
> www.alatto.com
>
> This mail was sent to address paul@thetamusic.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
--
*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*F=m(dv/dt)
Paul B. Lester
thetamusic.com(有)
Chief Engineer
EMAIL: paul@thetamusic.com
--
http://www.thetamusic.com/
personal homepage: http://pbl1.tripod.com/
personal EMAIL: pbl1@cornell.edu
*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*=*+*F=m(dv/dt)
Received on Wed Sep 3 13:01:08 2003