>Is there an API in PalmOS for converting MBCS (multi-byte character
>system) encoding to UNICODE? Something similar to MultiByteToWideChar()
>on Win32?
On 4.0, or Sony 3.5 devices, the TxtConvertEncoding routine provides
support for converting between Unicode (UTF-8, UTF-16) and the device
character encoding. So if you're running on a Japanese device, then
yes you can use this to convert between Shift-JIS and Unicode.
You can verify the existence of the routine by checking that the
result of IntlGetRoutineAddress(intlTxtConvertEncoding) is not NULL.
-- 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/tech/support/forums/