Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Encoding + sign in keyword search

  • 2 odpovědi
  • 7 má tento problém
  • 6 zobrazení
  • Poslední odpověď od Shawna

more options

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?

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?

Všechny odpovědi (2)

more options

Zvolené řešení

more options

Excellent... %S fixes it. With %S (instead of %s), the %2b doesn't get double encoded, like it does with %s.