> Make sure you transcode to UTF-8.
> 
> Sounds like a good idea, but I'm not sure how.  Do I
> have to use ICU?  Or is there some way through
> XMLString (or some other xerces class/api) which isn't
> obvious to me?

Look at the class XMLTransService in src/xercesc/util/TransService.hpp

> 
> > If it is and if the char argument is not
> > guaranteed to be null terminated than I guess I'll
> > have to make a copy before calling transcode.
> 
> Why?  The transcoder interface does not require
> this. 
> 
> I'm a little confused.  The version of transcode I'm
> using has this signature:
> 
>   char* transcode(const XMLCh* const toTranscode);
> 
> If it doesn't take a length and it doesn't depend on
> the array being null terminated how does it know when
> to stop transcoding?  Thanks again for taking the time
> to reply.

Don't use that function.  The documentation for it says:

    /** Transcodes a string to native code-page

You don't want to do local code page conversion -- you want to convert to 
UTF-8.  Create a UTF-8 transcoder using XMLTransService and use that.

Dave



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

Reply via email to