[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: Help Required On LOADXMLmethod of MSXML DOM
  • From: "asim" <qazi@a...>
  • Date: Thu, 13 Mar 2003 16:58:55 -0800

 
Qazi Asim
Developer Hosting Controller
http://www.asanquran.com
http://www.hostingcontroller.com
this is my XML packet
<data>
   <get-resellers>
        <get-resellers-recordrow>
            <get-resellers-name>å®¶</get-resellers-name>
        </get-resellers-recordrow>
        <get-resellers-recordrow>
            <get-resellers-name>asim</get-resellers-name>
        </get-resellers-recordrow>
        <get-resellers-recordrow>
            <get-resellers-name>å®¶</get-resellers-name>
        </get-resellers-recordrow>
</get-resellers>
</data>
 
 
this "å®¶" is the utf-8 encoding of a japanese character (HOUSE), it was stroed in database, i query the DB and made the above packet,

Using MSXML Dom i transformed it on server and generated HTML,
i pass this XML packet as a string and load it  using "LoadXML" method of the parser,
the problem is as microsoft said that LoadXml method accepts only UTF-16 and UCS-2 encoding, when i generate HTML,  i can only see these characters "å®¶" on the browser, which wre orignally stroed in the database

1) what is that problem
 
2) Secondly if i save this packet as.xml file and then load it Using "LOAD" method of the parser, i can see japanese characters fine in browser.

i cannot use "LOAD" method coz always i ll get the XML packet as a string
 
plz help, what should i do , y LOADXML is not working fine .
Qazi Asim
 

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member