HttpPost httpPost = new HttpPost(url);
// 解决了返回结果乱码的情况
httpPost.addHeader("Content-type","application/x-www-form-urlencoded;charset=utf-8");
。。。
// 解决啦请求参数乱码的情况,如果沒有UTF-8,就會亂碼
HttpPost httpPost = new HttpPost(url);
// 解决了返回结果乱码的情况
httpPost.addHeader("Content-type","application/x-www-form-urlencoded;charset=utf-8");
。。。
// 解决啦请求参数乱码的情况,如果沒有UTF-8,就會亂碼