I'm using Google translator API (v. 1 with JSON) from python to
translate from Spanish into English..
I have the following problem: accented characters are completely
ignored by the Google translator. For example:
-Input: días
-translation (API): das <= I think the translator returns the string
that has received (note that it is the same word without the accented
character) because it does not find a translation.
-translation (web interface): days <= this is correct

Another example:
-Input: caminó
-translation (API): camin <= returns the same word without the accent
character
-translation (web interface): Walked <= this is correct

My code: http://paste.pocoo.org/show/357135/

This code is based on the example available in the documentation
(http://code.google.com/intl/es-ES/apis/language/translate/v1/
using_rest_translate.html). The function Urllib.urlencode() that I use
in the code correctly converts characters with accents. I checked that
with this page: http://www.w3schools.com/TAGS/ref_urlencode.asp

This problem has already been reported by another user(http://
code.google.com/p/google-ajax-apis/issues/detail?id=503). Am I doing
something wrong? Or is this really a bug? Any workaround?

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

Reply via email to