Translate API choking on ampersand '&'

169 views
Skip to first unread message

Sean Busa

unread,
Jun 19, 2013, 9:27:27 AM6/19/13
to google-tra...@googlegroups.com
We're using the paid translation api, currently I have an instance where we're passing in a string that has latin characters and unicode korean or japanese.
in the Latin Alpha there is an ampersand included in the company name. (i.e.  B&K 高精度)
The API returns 'B' as the translation.
I set the source to ko or ja, and the target = en.
When i remove the ampersand and pass the string back it returns correctly: B&K Precision
This is going to be run on an automated process, therefore if we can avoid processing the string to remove and replace the ampersand it would be best for us.
 
Please help!
 
Thanks,
 
Sean
 
Message has been deleted

WTHNoSpam

unread,
Dec 12, 2013, 7:06:41 PM12/12/13
to google-tra...@googlegroups.com
Did you ever figure a way around this?  Using & to wrap the & doesn't seem to work either when it really should.

WTHNoSpam

unread,
Dec 12, 2013, 7:30:49 PM12/12/13
to google-tra...@googlegroups.com
BTW, I got it to work by using the UTF-8 code for ampersand - %26.

No reason why & shouldn't work though...  Bug.
Reply all
Reply to author
Forward
0 new messages