Board index » Web Programming » load xml with asp lost central european chars

load xml with asp lost central european chars

Web Programming316
Hi,



my problem is that i load an xml file (which displayed

well in iexplorer standalone) with an asp file, and the

page displays o instead of ő, u instead of ű, so my

central european characters are changed. the xml well

formed, and well encoded. i hope ;)



<?xml version="1.0" encoding="ISO-8859-2"?>

<tests>

<test>o</test>

<test>&#337;</test>

</tests>


-
 

Re:load xml with asp lost central european chars





badd wrote:



Quote
my problem is that i load an xml file (which displayed

well in iexplorer standalone) with an asp file, and the

page displays o instead of &#337;, u instead of &#369;, so my

central european characters are changed. the xml well

formed, and well encoded. i hope ;)



<?xml version="1.0" encoding="ISO-8859-2"?>

<tests>

<test>o</test>

<test>&#337;</test>

</tests>



Show us your ASP code to load the XML file. And the code that then

processes the XML and sends output to the browser.

--



Martin Honnen

JavaScript.FAQTs.com/">JavaScript.FAQTs.com/



-

Re:load xml with asp lost central european chars



Quote
-----Original Message-----





badd wrote:



>my problem is that i load an xml file (which displayed

>well in iexplorer standalone) with an asp file, and the

>page displays o instead of &#337;, u instead of &#369;, so my

>central european characters are changed. the xml well

>formed, and well encoded. i hope ;)

>

><?xml version="1.0" encoding="ISO-8859-2"?>

><tests>

><test>o</test>

><test>&#337;</test>

></tests>



Show us your ASP code to load the XML file. And the code

that then

processes the XML and sends output to the browser.

--



Martin Honnen

JavaScript.FAQTs.com/">JavaScript.FAQTs.com/



.





thank you, but resolved.

the solution was, that i had to write a

<%@ CodePage=1250 %>

line to the asp. anyway, it was simple:



Set xmlDoc = CreateObject("Microsoft.XMLDOM")



xmlDoc.async="false"

xmlDoc.load(Server.MapPath("test.xml"))







-