I have some query text that is being encoded with JavaScript, but I\'ve encountered a use case where I might have to encode the same text on the server side, and the encodin
There are a few options available to you, the fastest might be to use UrlEncode then do a string.replace to swap the + characters with %20.
+
%20
Something like
HttpUtility.UrlEncode(input).Replace("+", "%20");