Reading Arabic character in xml.This xml loading from web.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I want to read xml.This xml is coming from "http://www.google.com/ig/api?weather=Abu Dhabi&hl=ar" this link.
for this i use below code
XmlDocument xmlConditions = new XmlDocument();<br/>

WebRequest request = WebRequest.Create(@"http://www.google.com/ig/api?weather=Abu Dhabi&hl=ar");<br/>
request.Credentials = System.Net.CredentialCache.DefaultCredentials;<br/>
//create a proxy if you are behind a poxy server<br/>
WebProxy proxy = new WebProxy();<br/>
proxy.Credentials = CredentialCache.DefaultCredentials;<br/>
proxy.Address = new Uri(@"http://www.google.com/ig/api?weather=Abu Dhabi&hl=ar");<br/>
request.Proxy = proxy;<br/>
using (System.IO.StreamReader reader = new System.IO.StreamReader(request.GetResponse().GetResponseStream()))<br/>
{<br/>
string rssContent = reader.ReadToEnd();<br/>
xmlConditions.LoadXml(rssContent);<br/>
}
I use debugger to see the output .
In out put I can see English character , But there is problem in loading Arabic character.
Please help me ?
<br/>

View the full article
 
Back
Top