I develop a website data fetcher application using Webclient. it's works frine. but i
facing big problem, about the accented vowels. I mean when i download the string
contains accented vowvels it's not showing properly in the application.
Please see my code
public string DownloadByWebClient(string url)
{
string html = string.Empty;
try
{
using (WebClient client = new WebClient())
{
try
{
client.Headers.Add("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)");
html = client.DownloadString(url);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return "";
}
finally
{
client.Dispose();
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return "";
}
return "";
}
Please see my images below.
In web page.
In application
I am clueless. Please help.