This probably has been discussed before, but I couldn't find the right =
bit of information in the archives...

I need to display Chinese characters on a Palm 4 device... and have no =
clue how.

Here's the situation:

- I know the unicode number of the characters.
- What I don't know is how to switch character sets and how to display =
multibyte characters.
- Also, what kind of unicode encoding would I need to use? UTF-8 comes =
to mind...

1. You'll either need to create your own Chinese OS support (or at least the drawing portions) or you'll have to install one of the many 3rd party Chinese locale hacks (CJKOS, CHOS, etc)


2. Since you're running on Palm OS 4, you can use TxtConvertEncoding to convert from either UCS-2 or UTF-8 to the device's encoding, which you get from the system's sysFtrNumEncoding feature. This assumes, though, that the 3rd party solution has correctly implemented TxtConvertEncoding, which I haven't personally verified.

I would agree that UTF-8 makes more sense as the format for your source text.

BTW, the device encoding for China is probably GB, and for Taiwan is Big-5.

3. Now you've got a string in the device encoding, so you just use it with the regular drawing APIs.

PS: If you guys know how to do this, please point out, whether your =
solution works under Palm OS 5.0, too. Thanks!

Unless you roll your own drawing support, this question is whether the 3rd party hack works on Palm OS 5. I believe a few of them do (CHOS comes to mind).


-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to