Escape and Unescape (URL encoding)

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

Escape and Unescape (URL encoding)

Post by clickerX » Sun Feb 19, 2012 3: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: Tue Jul 05, 2011 5:25 pm

Re: Escape and Unescape (URL encoding)

Post by Vince » Mon Feb 20, 2012 9:14 pm

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: Tue Jul 05, 2011 5:25 pm

Re: Escape and Unescape (URL encoding)

Post by Vince » Fri May 04, 2012 9:13 am

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