Webclient client = new Webclient (); client.Encoding = System.Text.Encoding.GetEncoding("windows-1251");//application crashes because of this line .... client.DownloadStringAsync("somesite/somefile.txt");
It normaly works on emulator,but on my android device it crashes...So,how can i use this encoding?