There are three options:

Option 1:

allocate an unsigned short buffer nchars+1 long (number of unicode 
characters, not C/C++ char's)
use XMLString::copyNString
use XMLString::transcode ()

You could call the transcoding service directly too. Which leads me to the 
next option:

Option 2:

     XMLLCPTranscoder* defXCode = 
XMLPlatformUtils::fgTransService->makeNewLCPTranscoder();
     virtual char* transcode(const XMLCh* const toTranscode) = 0;
     delete defXCode; // or cache it away somewhere for future use

which returns a heap allocated string in the local code page.

Option 3:

Use ICU directly.

It looks like there is an ommision for a convenience function that is 
present in the transcoders. Please file a bug report specifying the api 
that is missing from the XMLString class.

-Bob


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to