Friday, July 01, 2005

Turning off URL Encoding

Normally YubNub will apply "URL encoding" to parameters. For example, "gim Mork & Mindy" gets turned into http://images.google.com/images?q=Mork+%26+Mindy (note that the & became +%26+). This is what works for most websites. However, W. Van Hooste pointed out that this does not work for the Internet Archive Wayback Machine. To tell YubNub to turn off URL encoding, include the following text somewhere in your URL: [no url encoding]

For example, if you make a command called arch with the following URL...
http://web.archive.org/web/*/%s[no url encoding]
...when the user types...
arch http://www.ing.be/
...they will be taken to...
http://web.archive.org/web/*/http://www.ing.be/
If you hadn't specified [no url encoding], the user would have been taken to http://web.archive.org/web/*/http%3A%2F%2Fwww.ing.be%2F

2 Comments:

Blogger Kunal said...

I guess Alexa also falls under that condition as well. However, Alexa does work when you encode it.

7/01/2005 11:39 a.m.  
Blogger Jonathan said...

kunal - Good to hear that Alexa will still accept encoded parameters. If you see any commands that need their parameters left unencoded, let me know and I will fix them.

7/01/2005 5:08 p.m.  

Post a Comment

<< Home