chinese character in RecordStore

Hi all,

I am new to j2me. is it possible to key in Chinese character and store it in recordstore, and i can display the character back when i view the record?

i have go through many examples of j2me encoding. but i still don't have any idea about how to do this.

Thanks a lot...

[305 byte] By [honghong@_@a] at [2007-11-27 10:29:20]
# 1

HongHong -

There may be some tips you can use on www.77new.cn/program/i/1173293079453/001/029/14438.html -- I don't know chinese and the translation wasn't good enough for me to be sure about it.

Have you tried? If your emulator or handset allows you to key in Chinese characters in a textField, they should be available via getString()

and the resulting string should get stored OK, of course being a DBCS there wll be 2 bytes per letter.

Recover the string from the RecordStore using

new String(recordStore.getRecord(n));

I have a MotoROKR E6 with alternative Chinese keyboard, shall experiment and get back to you in a day or two.

Meanwhile, try for yourself and post the results.

Regards, Darryl

Darryl.Burkea at 2007-7-28 17:56:52 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Even after setting the language of my handset to Chinese before installing the test app, the string recovered from the RecordStore displayed as "?".

The number of question marks was always the same as the number of Chinese characters entered, that shows it was recognized as a DBCS, but the actual characters didn't display. I wonder why.

Regards, Darryl

Darryl.Burkea at 2007-7-28 17:56:52 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

Yes, i have tried and it doesn't work.. I am now trying to do some encoding and decoding to see whether the chinese character can be displayed properly..

honghong@_@a at 2007-7-28 17:56:52 > top of Java-index,Java Mobility Forums,Java ME Technologies...