Xerces for C++ serializes my DOM in UTF-16

S

Shyamrox

Xerces for C++ serializes my DOM in UTF-16 , when I try to setEncoding
on the DOMDocument and/or the DOMWriter, it still never changes the
encoding.

Can anyone provide tips/example code on how to do this? Is it possibly
a bug with xerces 2.6?


Thank You!!
Shyam
 
B

Boris Kolpackov

Hi Shyam,

Shyamrox said:
Xerces for C++ serializes my DOM in UTF-16 , when I try to setEncoding
on the DOMDocument and/or the DOMWriter, it still never changes the
encoding.

Can anyone provide tips/example code on how to do this? Is it possibly
a bug with xerces 2.6?

Check the DOMPrint example that comes with Xerces-C++. It has an option
to set the output encoding. Last time I used it, it worked for me.


hth,
-boris
 
S

Shyamrox

Thanks!!! It worked! The difference was I was using "writeToString()"
API and not the "writeNode()" API.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top