I’m using the WebClient.DownloadString method to GET a response from a website.
Sometimes, the returned string will contain the ' symbol as it’s code: n#39 (or similar, I’m recalling it from memory).
I’ve used the String.Replace method to replace any occurrences, but maybe there’s a built in method that let’s me convert these encoding’s to the actual character.
Does this exist?
Yes you can do it using HttpUtility.HtmlDecode() method
p.s. You’ll need to refer the System.Web.dll assembly in your project.
See this for details