There is a problem, namely the encoding error when reading data from the site using a C # code. All Cyrillic from normal characters turns into something similar: РЇРїРѕРЅСЃРєРёР№ СЏР · С ‹Рє. Tell me, please, how it can be overcome. To get the data I use the following under:
WebRequest request = WebRequest.Create(@"http://exclusiveblog.ru/markup/problema-s-utf8-v-denwere"); WebResponse response = request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.Default); string htmlCode = reader.ReadToEnd(); reader.Close(); response.Close(); as well as this:
using (var client = new System.Net.WebClient()) { string sitetext = client.DownloadString("http://http://exclusiveblog.ru/markup/problema-s-utf8-v-denwere"); }