a question related to Google Translate

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-03-17T20:08:50Z Indexed on 2010/03/17 20:11 UTC
Read the original article Hit count: 194

Filed under:
|

Hi all,

it works perfectly fine if I paste the following URL directly into my IE address bar:

http://translate.google.cn/translate?hl=zh-CN&sl=zh-CN&tl=en&u=http%3A%2F%2Fnews.baidu.com%2Fns%3Fword%3D%25B0%25C2%25B0%25CD%25C2%25ED

it will translate some Chinese news pages into English ones.

but if I call this address in a Java program like:

Process q=Runtime.getRuntime().exec("cmd /c start http://translate.google.cn/translate?hl=zh-CN&sl=zh-CN&tl=en&u=http%3A%2F%2Fnews.baidu.com%2Fns%3Fword%3D%25B0%25C2%25B0%25CD%25C2%25ED");

It will only return to the Google translate main page.

Wonder what went wrong there.

and it would be great if you help me how to realize this(opening the Google translated result page simplying by supplying the URL,in a Java program).

Many thanks.

© Stack Overflow or respective owner

Related posts about web

Related posts about java