Quantcast
Viewing all articles
Browse latest Browse all 655

New Post: Encoding

Hi all!

Having the same problem as described by rmoritz above. Tried the workaround hemp suggested but with special characters like æ ø å etc. still getting converted to ?. After some searching through the System.Net namespace for something that would read my url right, I ended up using the following:

HtmlDocument htmlDoc = new HtmlDocument(); 
using (System.Net.WebClient client = new System.Net.WebClient())
{
     var html = client.DownloadString(url);
     htmlDoc.LoadHtml(html);
}

I have not tested this on other machines than my own...


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>