martin-booxi / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
0 stars 0 forks source link

Unattended Unicode-like characters in translate API response #347

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Make translate API, POST call as described in 
https://cloud.google.com/translate/v2/using_rest#supported-query-params.

Use parameters:

source=en
target=eu
q=AVERY DENNISON, MONARCH, 9825, PRINTER, MEDIUM
VOLUME 10.1cm, 203 DPI, 6 IPS, RS232 USB &PARALLEL
BASE MODEL, PLASTIC COVER

Expected output is something like

"AVERY DENNISON, MONARCH, 9825, inprimagailua, MEDIUM BOLUMENA 10.1cm, 203 DPI, 
6 IPS, RS232 USB & PARALELOETAN oinarrizko eredua, plastikozko estalkia"

We have instead

{
"translatedText": "AVERY DENNISON, MONARCH, 9825, inprimagailua, MEDIUM 
BOLUMENA \u200b\u200b10.1cm, 203 DPI, 6 IPS, RS232 USB & PARALELOETAN 
oinarrizko eredua, plastikozko estalkia"
}

- note a couple of \u200b. This corrupts the text when further used in our 
applications.

We use /language/translate/v2. Calling application is Web server (Java/Tomcat)

Additional information:

* GET requests result in correct responses (no unattended characters)

Thank you

Original issue reported on code.google.com by catalogo...@gmail.com on 24 Jun 2015 at 6:17