chobo2 chobo2 - 1 year ago 143
ASP.NET (C#) Question

HttpUtility.HtmlDecode not decoding spaces?

I have this

string test = HttpUtility.HtmlDecode("");

When I look into test it still has %20 instead of a space. Why is it not decoding this?

Answer Source

You are looking for HttpUtility.UrlDecode() (in the System.Web namespace, I think)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download