> >My application will be localized to Spanish, German, French, Simp Chinese> >>and Italian. >I don't know whether these languages use NUL character or not?>Is it optional to use this NUL character or any string in above localized >languages will definately contain NUL character. >I hope u can clear my doubt.
You won't have a problem with Spanish, German, French, or Italian. Those all use the standard Latin character set. For Simplified Chinese, the encoding used by Palm OS also doesn't use embedded NUL characters.
For more details on character encodings, go to kb.palmsource.com andsearch > for "encoding".
Any character encoding supported by the existing Palm OS API will always treat a NULL byte as an end-of-string.
There are wide character encodings, such as UTF-16, where the end-of-string is a 16-bit NULL word, but such an encoding would never work as the device encoding, since all of the existing Palm OS APIs are "narrow" in the sense that they expect a byte stream, versus a 16-bit word stream.
The only current Palm OS function that will correctly process a wide encoding is TxtConvertEncoding.
-- 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/
