Normally I would just use:
HttpContext.Current.Server.UrlEncode(\"url\");
But since this is a console application, HttpContext.Curren
HttpContext.Curren
Try this!
Uri.EscapeUriString(url);
Or
Uri.EscapeDataString(data)
No need to reference System.Web.
Edit: Please see another SO answer for more...