> At any rate, it should be safe to modify Win32LCPTranscoder::transcode() to > simply allocate 2 bytes per unicode character before transcoding, shouldn't > it? >
No, definitely not 2 bytes. UTF-8 can take up to 6 bytes to hold a single Unicode character, and others can take 3 or 4 and whatnot. You really need to know what the target is going to take. And you can't really afford to do a worst case. If they are about to transcode a large amount of text, allocating 6 bytes per source Unicode char would be really piggy. Those other platforms have to have a function to do this calculation, since its fundamental to doing transcoding. -------------------------- Dean Roddey The Charmed Quark Controller Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "If it don't have a control port, don't buy it!" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
