有道翻譯接口Apijson
http://fanyi.youdao.com/openapi.do?keyfrom=***&key=***&type=data&doctype=json&version=1.1&q=wordapi
word就是查詢內容,如hello,可是查詢中文「你好」出現返回亂碼。spa
解決辦法:String lastedword=URLEncoder.encode(word, "UTF-8");翻譯
http://fanyi.youdao.com/openapi.do?keyfrom=***&key=***&type=data&doctype=json&version=1.1&q=wordcode