When I try download text file, I get bad text like "úěć˨Të€Ás…žVż$—éxś¶źŹßCb}㬖92á•,˝V....."
I use WebClient class:
private void button1_Click(object sender, EventArgs e)
{
WebClient _WebClient = new WebClient();
string url = "http://bossa.pl/pub/metastock/forex/sesjafx/";
string file= "20120601.prn";
_WebClient.DownloadFile(url + file, @"C:\"+file);
}
There is not problem with file 20120603.prn
, but with 20120601.prn
is.
What is going?