我有这个代码:
string URL = "http://translate.google.com/m?hl=vi&sl=en&tl=vi&ie=UTF-8&prev=_m&q=song";
string s = "";
WebClient client = new WebClient();
client.Headers.Add("user-agent", "Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 Nokia5800d-1/21.0.025; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413");
s = client.DownloadString(URL);
运行时,我收到一个格式为该字符串的字符串:
danh tÆ°Ì€ buổi há»p để ca hát
到这个字符串:
danh từ buổi họp để ca hát
非常感谢你 :)