Hi, Gareth.


> -----Original Message-----
> From: Gareth Reakes 
> [mailto:[EMAIL PROTECTED] Behalf
> Of Gareth Reakes
> Sent: Wednesday, March 24, 2004 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Encapsulation of XMLCh* string
> 
> > If I remember when I was using Xerces 1.6, no Serializer 
> was provided with
> > and everybody was writing its own serializer... Is it the same for
> > this encapsultation of XMLCh* string???
> 
> The serializer everyone used to write was for the XML. If you want to
> serialize XMLCh and view you either need an editor that will 
> understand
> UTF8/16 or transcode to your local code page. These facilities are all
> available via transcode. You have already seen you can lose 
> information by
> transcoding to your local code page.

What I did to serialize a string containing unicode (such that it can be 
saved to a text file that can be interpreted with notepad using UTF-8)
was to create a text node and serialize that using the Xerces serializer.

Perhaps not the best solution to come up with, but it works.

Hiran

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

Reply via email to