Forum Xamarin.Android

how to use win-1251 encoding?

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?

Posts

Sign In or Register to comment.