Encoding + sign in keyword search
I'm trying to figure out how I can use a + sign when using a keyword search.
Let's say I have google setup as a keyword search to google.com
google 2+2 -> http://www.google.com/search?hl=en&source=hp&biw=&bih=&q=2+2 (so 2 2)
Ok, I'll encode the +. google 2%2b2 -> http://www.google.com/search?hl=en&source=hp&biw=&bih=&q=2%252b2
So I'm stumped... How do I get the + to work in the keyword search?
Chosen solution
This should work: http://www.google.com/search?hl=en&source=hp&biw=&bih=&q=2%2b2
Make sure that you use %s:
See also http://kb.mozillazine.org/Using_keyword_searches
Read this answer in context 👍 0All Replies (2)
Chosen Solution
This should work: http://www.google.com/search?hl=en&source=hp&biw=&bih=&q=2%2b2
Make sure that you use %s:
Excellent... %S fixes it. With %S (instead of %s), the %2b doesn't get double encoded, like it does with %s.