CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Posts
    1

    MSXML corrupts data?

    I'm trying to parse xml files using IXMLDocument/IXMLElement interfaces. It worked fine until I tried to parse a xml document with non-English characters.

    One of CDATA elements in my xml document has non-English characters. For some reason, these characters were converted to other chars and question marks when I used IXMLElement::get_text() to get the element's text... Any ideas why it happenned? The xml file had encoding="ISO-8859-1" in the header, I tried UTF-8 (after encoding those chars in UTF-8) but it didn't help.

    How can I tell this xml parser not make such conversions?

    Tony

  2. #2
    Join Date
    May 2003
    Location
    France !
    Posts
    7
    Hello!
    I think you have to replace all non-English characters to html characters. Ex:
    é become & eacute ;
    @+
    demo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured