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

Shyamrox

Usenet Archive
Joined
May 24, 2006
Messages
2
Reaction score
0
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
 

Boris Kolpackov

Usenet Archive
Joined
Aug 11, 2003
Messages
60
Reaction score
0
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
 

Shyamrox

Usenet Archive
Joined
May 24, 2006
Messages
2
Reaction score
0
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
548,049
Messages
3,104,243
Members
248,133
Latest member
DujonT

Latest Threads

Top