Open GoogleCodeExporter opened 8 years ago
Supplement:
This method Translate.execute()
If first parameter is String array, it will throw this exception.
If first parameter is String, it's ok.
Original comment by zxdd...@gmail.com
on 27 Nov 2013 at 9:00
In com.memetix.mst.MicrosoftTranslatorAPI abstract class buildStringArrayParam
method, we have
targetString.append(value);
Here if the value is appropriately escaped, then this problem could be solved.
In my case, a double quote was causing the issue. When I tried with
targetString.append(value.replaceAll("\"", "\\\\\""));
it worked fine.
Original comment by srama...@gmail.com
on 28 Feb 2014 at 6:28
Original issue reported on code.google.com by
zxdd...@gmail.com
on 27 Nov 2013 at 7:48