Translate API apostrophe problem

622 views
Skip to first unread message

Avi Levi

unread,
Dec 4, 2012, 3:03:56 AM12/4/12
to google-tra...@googlegroups.com
Hi,
I am using the translate API via the URL bar (omnibox).
I have something that translates to "How's life", but when I get the translation,
the apostrophe turns into "&#039".
I am not sending an apostrophe originally. Google translates it to be "how's life" instead of "how is life".
I did not ask it to shorten it.
Is there a solution to this issue?

Thank you.

Hrishi kutti

unread,
Jan 9, 2013, 10:00:38 PM1/9/13
to google-tra...@googlegroups.com
Hi, Did you get any update for this.

Because when i try to call API translate for Mexican and spanish language which uses appostrophe are represented as  ' and even double quote is represented as " 

So dear Google ,  is there any solution for us ??

Thanks
Abi

Daria Kurochkina

unread,
Jul 9, 2013, 11:06:51 AM7/9/13
to google-tra...@googlegroups.com
If you use don.net - just apply to the result

System.Net.WebUtility.HtmlDecode(result);

And Droid

unread,
May 12, 2014, 1:46:33 AM5/12/14
to google-tra...@googlegroups.com
Hi

is anyone got solution/ i am facing the problem.

Vlad Sobol

unread,
May 27, 2018, 12:00:14 PM5/27/18
to Google Cloud Translation API
You should look for a function in the language that you're using that "unescapes" these special characters. For example, in Go, you can use the function "UnescapeString" in the "html package.

Reply all
Reply to author
Forward
0 new messages