HtmlEncode

P

Peter K

Hi

in an application I am writing I have to process some text files which
contain various data. Some of this data are text strings which have been
encoded with HtmlEncode (I think it is HttpServerUtility.HtmlEncode which
has been used).

How do I decode this encoded text to something more human-readable? I don't
have access to any "Http" as I am not running in a web context.

Thanks,
Peter
 
J

Jon Skeet [C# MVP]

in an application I am writing I have to process some text files which
contain various data. Some of this data are text strings which have been
encoded with HtmlEncode (I think it is HttpServerUtility.HtmlEncode which
has been used).

How do I decode this encoded text to something more human-readable? I don't
have access to any "Http" as I am not running in a web context.

You can still use HttpServerUtility - just add a reference to the
System.Web assembly.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top