I have a WebClient
using which I was reading some webpage from the url
. Code was working fine until now. When I debugged the code, all I could see was nothing but special characters or may be encoded contents. That particular url
is working fine when I open it in browser.
I have tried using HttpClient
and other methods but it makes no difference. Please suggest what should I do?
P.S: Every other url is working fine in the code.
var client = new WebClient();
var downloadString = client.DownloadString("http://www.covid.gov.pk");