String access_token = "";//调用微信获取access_token接口可得 String URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN"; // 原始json String jsonResult = HttpUtil.sendGet(URL.replace("OPENID", openid).replace("ACCESS_TOKEN", access_token)); System.out.println(jsonResult); // 编码后的json ISO-8859-1转换成UTF-8 String json = new String(jsonResult.getBytes("ISO-8859-1"), "UTF-8"); System.out.println(json);