I want load xml documents, but there are special symbols like : ąčęėįšųū and i get error Invalid character in the given encoding. Question is how to encode this characters before load xml ?
// load xml result from Google weather
XDocument xd = XDocument.Load("http://www.google.com/ig/api?weather=vilnius&hl=ru");
I would give this a try