I have a JSON string result(in persian language) from a webservive.
But the results from the web service are as this:
"\u0622\u062f\u0631\u0633 \u0627\u06cc\u0645\u06cc\u0644"
While the original text is as follows:
عملیات انجام شد
how to Conversion from unicode to original format C#
this is my code
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://webserver.com/");
request.Method = "GET";
request.ContentLength = 0;
request.Credentials = CredentialCache.DefaultCredentials;
request.ContentType = "application/xml";
request.Accept = "application/xml";
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (Stream receiveStream = response.GetResponseStream())
{
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8))
{
string strContent = readStream.ReadToEnd();
}
}
}