Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

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

 
Thread Tools Search this Thread
Old 05-24-2006, 09:05 PM   #1
Default Xerces for C++ serializes my DOM in UTF-16


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



Shyamrox
  Reply With Quote
Old 05-25-2006, 09:12 AM   #2
Boris Kolpackov
 
Posts: n/a
Default Re: Xerces for C++ serializes my DOM in UTF-16

Hi Shyam,

"Shyamrox" <> writes:

> 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


--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
  Reply With Quote
Old 05-25-2006, 07:53 PM   #3
Shyamrox
 
Posts: n/a
Default Re: Xerces for C++ serializes my DOM in UTF-16

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

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump