This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

Encoding + sign in keyword search

  • 2 vastausta
  • 7 henkilöllä on sama ongelma
  • 6 näyttöä
  • Viimeisin kirjoittaja 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?

Kaikki vastaukset (2)

more options

Valittu ratkaisu

more options

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