Skip to content

Instantly share code, notes, and snippets.

@yayoc
Created June 27, 2014 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yayoc/2b3a48aff7790c7e5378 to your computer and use it in GitHub Desktop.
Save yayoc/2b3a48aff7790c7e5378 to your computer and use it in GitHub Desktop.
Url encode function
Function URLEncode(url)
Dim sc
Set sc = CreateObject("ScriptControl")
sc.Language = "JScript"
Dim js
Set js = sc.CodeObject
URLEncode = js.encodeURI(url)
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment