Problème caractères spéciaux + HTML
Bonjour,
je suis en train de récupéré des informations depuis une page web avec html agility et C# mais il y a des champs qui affiche des caractères spéciaux ci dessous mon code:
Code:
1 2 3 4 5 6 7 8 9
|
HtmlAgilityPack.HtmlWeb web = new HtmlWeb();
HtmlAgilityPack.HtmlDocument doc = web.Load("http://www.monsite.com");
HtmlNode viewDoc = doc.DocumentNode.SelectSingleNode("//*[@id=\"viewdoc\"]");
string url = viewDoc.Attributes["src"].Value;
doc = web.Load(url);
HtmlNode NodeCompany = doc.DocumentNode.SelectSingleNode("/html/body/p[7]/font");
string HtmlCoName = NodeConame.InnerHtml;
Console.WriteLine(HtmlCoName); |
Merci Pour Votre aide.