UrlEncode / UrlDecode methods? [RESOLVED]
I need some UrlEncode and UrlDecode methods to use in a C# class. I'm not working under ASP.NET so I don't have the Server object.
I'v been trying to create an instance of the HttpServerUtility object from the System.Web namespace, but it won't tell me what arguments its constructor needs and doesn't like it if I don't provide any.
I don't mind writing a couple of functions to do the job myself, but I'm not entirely sure what characters should be encoded and which don't need to be.