-5

I want to urldecode, except for the %20 character. How do I accomplish this?

WEFX
  • 8,298
  • 8
  • 66
  • 102

2 Answers2

1

Have you considered doing a string replace after decoding? For example

string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");
Eric Johansson
  • 582
  • 2
  • 14
0

use method HttpUtility.HtmlDecode(myEncodedString, myWriter);

burning_LEGION
  • 13,246
  • 8
  • 40
  • 52