johnangularjs / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

I found problem with Google AJAX Search API while passing some special character in search string!! #349

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=herret%F8j&start=0&g
l=dk&ln=dk
2. Also search same(herretøj) string on www.google.dk 
3. See the difference in result

What is the expected output? What do you see instead?
Output of 1st step should be same as google.dk output in second step

What version of the product are you using? On what operating system?
Google AJAX Web Search API 1.0

Please provide any additional information below.
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=herret%F8j&start=0&g
l=dk&ln=dk
Check output of this please!

Let me know this at earliest!!

Original issue reported on code.google.com by utkarsh....@gmail.com on 23 Nov 2009 at 7:44

GoogleCodeExporter commented 8 years ago
Hello Google

I also found same issue of searching special characters with google ajax api.

http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=herret%F8j&start=0&g
l=dk
Also search same(herretøj) string on www.google.dk

This is issue with google ajax api.

Original comment by micro.in...@gmail.com on 25 Nov 2009 at 5:25

GoogleCodeExporter commented 8 years ago
I suspect the issue is the character encoding used when escaping the ø 
character. Are you using UTF-8 encoding? Also if you are escaping this in 
JavaScript I recommend using encodeUriComponent() as opposed to escape().

Original comment by jscud.w...@gmail.com on 7 Aug 2010 at 2:50