Language API in Non-Javascript Environments

0 views
Skip to first unread message

highway

unread,
Jul 5, 2009, 10:21:31 AM7/5/09
to Google AJAX APIs
Hi,

I'm learning to use language API in non-javascript environments, it
seems i found a bug about http://ajax.googleapis.com/ajax/services/language/translate.

please try:

http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=你好&langpair=|en

I want to translate Chinese simplified word to English, but ajax api
will detect chinese words as english words and give me wrong result.

The same problem occurred when I use Japaness words as source, but
Ajax api works well between single-byte characters.



Jeremy Geerdes

unread,
Jul 6, 2009, 11:20:52 AM7/6/09
to Google-AJAX...@googlegroups.com
As Mr. Feldman pointed out on the issue tracker, you need to urlencode
your source string (and langpair, for that matter).

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!
Reply all
Reply to author
Forward
0 new messages