C
CreateObject
I am a newbie user. I am trying to get source code of a webpage using
WebRequest and WebResponse. I've managed to get source code but this time I
got stuck on character set. I can't display non-English characters like ÞÇÜÝ
and so on.
Here is my code;
WebRequest objReq = HttpWebRequest.Create("http://localhost");
objReq.ContentType = "text/html; charset=iso-8859-9";
WebResponse objRes = objReq.GetResponse();
StreamReader sr = new StreamReader (objRes.GetResponseStream());
string code = sr.ReadToEnd();
-------------------------------------
I always feel hard to deal with character releated things both while
developing applications and websites. Is there any way to get the idea
behind???
Thanks
WebRequest and WebResponse. I've managed to get source code but this time I
got stuck on character set. I can't display non-English characters like ÞÇÜÝ
and so on.
Here is my code;
WebRequest objReq = HttpWebRequest.Create("http://localhost");
objReq.ContentType = "text/html; charset=iso-8859-9";
WebResponse objRes = objReq.GetResponse();
StreamReader sr = new StreamReader (objRes.GetResponseStream());
string code = sr.ReadToEnd();
-------------------------------------
I always feel hard to deal with character releated things both while
developing applications and websites. Is there any way to get the idea
behind???
Thanks