Hi,

I'm trying to add the attached file's contents to a CDATA section in an xml. It 
contains a few Unicode-UTF8 characters from 
http://www.columbia.edu/kermit/utf8-t1.html. (you can view the file with 
Firefox, set the Character Encoding to Unicode(UTF8)).

//string 'text' has the contents;
//if I output it to a file with ofstream, the UTF8 characters are preserved

DOMElement* pText = pDoc->createElement( X(tag.c_str()));
DOMCDATASection* pCdata = pDoc->createCDATASection(X(text.c_str()));
pText->appendChild(pCdata);
parent->appendChild(pText);

the resulting xml however loses the UTF-8 characters. Is it the X() macro that 
is to blame, or can I set other XML Document properties so
 I keep my UTF8 chars?

Thanks.



      Got a little couch potato? 

Check out fun summer activities for kids.





       
____________________________________________________________________________________Give
 spam the boot. Take control with tough spam protection in the all-new Yahoo! 
Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html 

Reply via email to