Hi,
I am obtaining strings from the web which often contain accented characters not recognised from within my application.
Edit - I'm obtaining my string using the HtmlAgilityPack. I am taking the InnerText
of a <title>
tag. Whilst doing this the Pack uses a different encoding from the original HTML document (I'm not sure which ones though?).
// get the html title inner text and assign to htmlParts object
HtmlNode titleNode = doc.DocumentNode.SelectSingleNode("//title");
string docTitle = titleNode.InnerText;
htmlParts.htmlTitle = docTitle.ToString();
Can anyone tell me how I can go from getting "(Subtitulado al español).avi"
to "(Subtitulado al español).avi"
?
I'd very much appreciate it. :)