I want to urldecode, except for the %20
character. How do I accomplish this?
Asked
Active
Viewed 683 times
-5

WEFX
- 8,298
- 8
- 66
- 102

user1826777
- 19
- 1
2 Answers
1
Have you considered doing a string replace after decoding? For example
string decoded = HttpServerUtility.UrlDecode(input).Replace(" ", "%20");

Eric Johansson
- 582
- 2
- 14
-
unfortunately this didn't work for me – user1826777 Nov 15 '12 at 13:45
-
Could you give more information on how the results differed from what you wanted? – Eric Johansson Nov 15 '12 at 15:00