Hi,
I am using Google API to translate the string, but some times it will
not translate properly. Recently i found a new issue it is not able to
download the data. it is showing the error: "The remote server
returned an error: (503) Server Unavailable".
One more point is that it is a stand alone application (not a web
application) in c# Windows.
this is the code i have written:
string url = String.Format("
http://www.google.com/translate_t?
hl=en&ie=UTF8&text={0}&langpair={1}", "apple", "en|de");
WebClient webClient = new WebClient();
webClient.Encoding = System.Text.Encoding.UTF8;
// Get Default Proxy
IWebProxy proxy = WebRequest.GetSystemWebProxy();
proxy = new WebProxy(sProxyAddr);
proxy.Credentials = new NetworkCredential(sUserName, sPasswd);
webClient.Proxy = proxy;
string result = webClient.DownloadString(url);
please give a solution to this probelm.
thanks
Jishad