View Single Post
  #1 (permalink)  
Old 10-04-2008, 2:47 PM
Slowjim Slowjim is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Sep 2008
Location: League City, TX
Age: 62
Posts: 6
Reputation: 0
Slowjim is on a distinguished programming path ahead
Default XMLReader Encoding

I have been sending web requests to Google Maps and successfully receiving the expected responses in xml format. I no problem with using an instance of the xmlreader to interpret the response . Sometimes, in these responses it is necessary that I receive characters like a small letter 'o' with the diaeresis. This is necessary because these are usually European names that use characters like this. 'ö' When I get a response like that I get an error message that says "Invalid character in the given encoding. Line 1, position 126.".

How do change the encoding for the xmltextreader?

It is my understanding that xmlTextReader instance will use the document's encoding which is listed in the response as UTF-8. I have no idea how to solve this and help would be greatly appreciated.

Thanks

Last edited by Slowjim; 10-04-2008 at 3:12 PM.
Reply With Quote