Escape and Unescape (URL encoding)

Share actions you've created here.
Post Reply
clickerX
Posts: 2
Joined: Sun Feb 19, 2012 11:26 pm

Escape and Unescape (URL encoding)

Post by clickerX » Sun Feb 19, 2012 11:35 pm

A couple little JScripts for ya

Code: Select all

Clipboard.Value = escape(Clipboard.Value)

Code: Select all

Clipboard.Value = unescape(Clipboard.Value)

Vince
3D Clipboard Author
Posts: 22
Joined: Wed Jul 06, 2011 12:25 am

Re: Escape and Unescape (URL encoding)

Post by Vince » Tue Feb 21, 2012 5:14 am

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

Vince
3D Clipboard Author
Posts: 22
Joined: Wed Jul 06, 2011 12:25 am

Re: Escape and Unescape (URL encoding)

Post by Vince » Fri May 04, 2012 4:13 pm

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)

Post Reply