I load the page with the encoding: "usa-ascii", but I'm wrong. why??
WebClient wb = new WebClient();
Encoding enc = Encoding.GetEncoding("US-ASCII");
wb.Encoding = enc;
byte[] by = wb.DownloadData(link);
string htmlDoc = enc.GetString(by);
but I get: Pr? z instead of: Präz .
Html of my link : (charest = us-ascii)
<html debug="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"/>
</head>
...................
What's wrong???
ps I tried utf-8 encoding and it didn't work either.
source
share