I'm trying to use WebClient class to view the content of a hebrew page, but get gibberish instead of Hebrew.
My code is:
using (WebClient webClient = new WebClient())
{
webClient.Headers.Add(HttpRequestHeader.ContentType, "charset=windows-1255");
string page = webClient.DownloadString("http://hebrew-academy.huji.ac.il/Pages/default.aspx");
}
I'm receiving the English content correctly, but the Hebrew content is Gibberish for example:
<title> ׳”׳׳§׳“׳׳™׳” ׳׳׳©׳•׳ ׳”׳¢׳‘׳¨׳™׳× ג€“ ׳“׳£ ׳”׳‘׳™׳×</title>
Does anyone knows how to get the hebrew content correctly?