1

Topic: HttpWebRequest - a problem with the coding

I try to preempt a file a following script:

HttpWebRequest myReq = (HttpWebRequest) WebRequest. Create ("https://iss.moex.com/iss/apps/rms3/rates.csv");
HttpWebResponse response2 = (HttpWebResponse) myReq. GetResponse ();
StreamReader stream2 = new StreamReader (response2.GetResponseStream ());
string s2 = stream2.ReadToEnd ();
MessageBox. Show (s2);

The moderator: we Learn to use tags of design of the code - FAQ
The message produces curve Cyrillic characters.
Help to understand with the coding.

2

Re: HttpWebRequest - a problem with the coding

sPaul;

StreamReader streamReader = new StreamReader (response2.GetResponseStream (), Encoding. GetEncoding (1251));