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?
被采纳的解决方案
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
定位到答案原位置 👍 0所有回复 (2)
选择的解决方案
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.