开发者

Google suggest API does not work with Chinese locale

I have a problem with Google suggest API when using Chinese locale. I am picking Chinese hieroglyphs at random and use the REST API to retrieve suggestions. Unfortunately, Google always return an empty list of suggestions (I am completely sure, that I convert my request in utf-8, and it is working fine with 开发者_如何学Cother languages, ex. Russian):

Sample request:

http://suggestqueries.google.com/complete/search?qu=%E9%80%9F

Google answer:

window.google.ac.h(["速",[]])

Does anyone know how to retrieve suggestions for Chinese locale? Maybe I am missing some flags or something? Maybe there is an official document from Google, saying that Chinese is not supported? And are there any people from China, using Google toolbar? Does it really work? I'd appreciate any help!

If it matters, I am writing a simple WinAPI application, using C++...


http://googleblog.blogspot.com/2009/03/local-flavor-for-google-suggest.html says, at the bottom, that google suggest now supports "155 domains in 51 languages." This implies a possible solution, which is that you need to use the relevant domain.

http://suggestqueries.google.cn/complete/search?qu=%E9%80%9F

gives me

window.google.ac.h(["速",[["速腾","2,020,000 结果","0"] ...

A bit of experimentation shows that I'm able to get results for japanese only from google.co.jp, but not from google.com. I'm in Japan, YMMV.


Hmm I don't know it seems to work for me. e.g

http://suggestqueries.google.com/complete/search?qu=%e6%9c%a8

yields

window.google.ac.h(["木",[["木村了","297,026 results","0z"]]])
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜