Skip to content

Instantly share code, notes, and snippets.

@dannko
Created September 17, 2014 07:05
Show Gist options
  • Save dannko/ae736e8380d6fe1833c3 to your computer and use it in GitHub Desktop.
Save dannko/ae736e8380d6fe1833c3 to your computer and use it in GitHub Desktop.
C# Urlencode
var url = project.Variables["url"].Value;
var data = System.Web.HttpUtility.UrlEncode(url);
return data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment