Using the translator service with arabic characters
-
14 September 2011 6:08
Hi!
When I issue the following request:
I get the following response
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">????????</string>
Furthermore when I try to use the "detect" operation I get an "en" answer. Could it be that I need to issue a WebHttpRequest ensuring that the encoding is unicode in order for this to work or is there an issue with arabic characters when using the translator service?
Thanks in advance!
Semua Balasan
-
16 September 2011 18:56Pemilik
Hi Kodo,
the API expect the text in a URL-encoded UTF-8 string.
Chris Wendt
Microsoft Translator.- Disarankan sebagai Jawaban oleh Chris WendtMicrosoft Employee, Owner 16 September 2011 18:56
- Ditandai sebagai Jawaban oleh Vikram DendiOwner 21 September 2011 18:19
-
19 September 2011 7:45
Hi Chris!
Hmm, my "gut feeling" said something similar and I'm glad that you confirmed it;) So far I've just tested it through HTTP-requests through the web-browser. As soon as I get the time to make a quick C#-hack I'll let you know about my findings.
Many thanks!
/Peter -
19 September 2011 8:13Pemilik
Peter,
using C#, the SOAP interface is more appropriate for you. Just add http://api.microsofttranslator.com/v2/soap.svp as a web reference, and programming against the API is as easy as pie.
Chris Wendt
Microsoft Translator -
19 September 2011 8:16
Good stuff Chris and thanks for the recommendation as this makes it waaaaaaaaaay easier to use it:)
/Peter