> > What about numbers? Is char s[10] = "-54" always the same byte string in > any encoding, or is it possible that one encoding will not represent > numberic characters (and/or '.', '-') the same way as ASCII?
Yes, low ascii chars are identical in all encodings. > I see the > TxtAttrib functions, but is there a header file or something somewhere that > shows the number of bytes and value of each character for each supported > encoding? Maybe TxtCharSize(). You can't expect character tables - just imagine number of characters in some eastern languages. I suppose often it should be enough to follow advices in Palm OS Companion, Ch 11. But my experience in this area is rather limited and indirect. We use to use Unicode for Windows apps and several times it proved enough to let the customer to translate the resources. (I.e. do the localization.) Sometimes this procedure is not sufficient. (E.g. I posted an [unanswered] question concerning how to find out the encoding used in HotSync Dll's.) Nice reading concerning MBCS: http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarvc/html /msdn_mbcssg.asp > > AFAIK Text Manager API should provide what you need (although low level). > > Ya, but I wish there was a multibyte sprintf :) > Probably right. StrPrintF seems to support only %C for WChar's, which is too little to be considered as true multibyte support. Or does someone correct me? Regards Jan Slodicka -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
