Web サイトから応答を取得するための簡単なコードがありますが、小さな問題が 1 つあります。ロシアのWebサイトから応答を得ようとしています.1つのWebサイトからは記号を知らず、他のWebサイトからは通常のテキストを取得しています. どこに問題があるのでしょうか?
返信先: www.kinopoisk.ru
������ � ����...
返信先: www.yandex.ru
Греция - Чехия。1:2...
HttpWebRequest http = (HttpWebRequest) HttpWebRequest.Create("http://");
http.Timeout = 30000;
http.KeepAlive = true;
http.ContentType = "application/x-www-form-urlencoded";
http.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0";
http.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
http.Proxy = null;
WebResponse response = http.GetResponse();
Stream istream = response.GetResponseStream();
StreamReader reader = new StreamReader(istream);
Response.Write(reader.ReadToEnd());
reader.Close();