Groups | Blog | Home
all groups > dotnet xml > january 2004 >

dotnet xml : MSXML2 to Load xml document using ISO-8859-1 encoding


Neet
1/29/2004 11:41:13 AM
HI
My application connects to the UPS server which returns an ISO-8859-1 encoded XML response. I need a part of this response, ie. the AccessLicenseAgreement , which i need to display in my application and then return to the UPS server with the next request. Their server matches what they sent me with what i return back to them. Due to the difference in the encoding method it returns an Invalid AccessLicenseAgreement error back to me. I set my request Processing Instruction to ISO-8859-1 encoding, but i still get the same error from them. I am guessing the problem is when i read it in using Loadxml to read in the string thats returned, that it changes the encoding, though i am not sure. Can anyone help me with this issue

thanks
Oleg Tkachenko [MVP]
2/1/2004 2:28:32 PM
[quoted text, click to view]

Most likely. Avoid LoadXml, read directly from the stream.

--
Oleg Tkachenko [XML MVP, XmlInsider]
AddThis Social Bookmark Button