Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Encoding + sign in keyword search

  • 2 respostas
  • 7 têm este problema
  • 6 visualizações
  • Última resposta por 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?

Todas as respostas (2)

more options

Solução escolhida

more options

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