Hi,
GetEncoding("ISO-8859-1") worked slightly better - the request went through and response from the server was ok - se the first XML supplied. However, when I do a GET on the same data the server returns a corrupt XML file - se the second XML supplied. It seems that the encoding is not correct. Any ideas?
Best regards
RTSol
Main Topics
Browse All Topics





by: kaylanreilorPosted on 2009-10-01 at 04:24:46ID: 25467519
In System.Xml namespace, you CANNOT change the encoding when you deal with strings. You should have a look to what the guy says here : http://weblogs.asp.net/rmc laws/archi ve/2003/10 /19/32534. aspx.
BTW why not trying the GetEncoding("ISO-8859-1") method of the Encoding class when building your StreamWriter object ?