Page 1 of 1

Escape and Unescape (URL encoding)

Posted: Sun Feb 19, 2012 11:35 pm
by clickerX
A couple little JScripts for ya

Code: Select all

Clipboard.Value = escape(Clipboard.Value)

Code: Select all

Clipboard.Value = unescape(Clipboard.Value)

Re: Escape and Unescape (URL encoding)

Posted: Tue Feb 21, 2012 5:14 am
by Vince
Hi ClickerX, thanks for posting these. This is a good example of something that's easy to do with JScript, but not VBScript. I'm considering having some helper functions like these built into the action API so they can be used from any scripting engine.

-Vince

Re: Escape and Unescape (URL encoding)

Posted: Fri May 04, 2012 4:13 pm
by Vince
Version 1.5 includes the new Clipboard.UrlEncode() and Clipboard.UrlDecode() functions. Now, any supported scripting language can encode/decode URLs:

Code: Select all

Clipboard.Value = Clipboard.UrlEncode(Clipboard.Value)

Code: Select all

Clipboard.Value = Clipboard.UrlDecode(Clipboard.Value)