Bug report:

The two-page example code fails for queries containing extended
characters.

(Thanks to "TerryE" for reporting this in the Custom Search forum.)

Jeff, these changes should fix the problem:

Please specify UTF-8 encoding on the search and results pages:

  <meta http-equiv="content-type"
    content="text/html; charset=utf-8">

Also, in the getQuery function on the results page, please use
decodeURIComponent() instead of unescape().

  return decodeURIComponent(
    parts[i].split('=')[1].replace(/\+/g, ' '));

.

Here is the original report by TerryE:

http://www.google.com/support/forum/p/customsearch/thread?tid=31aa13cb3e256b3d

-- omr


-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to google-ajax-search-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-ajax-search-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to