doHttpClientPost()不能传中文!
doHttpClientPost()这个方法传不过来中文,求怎么传中文??????
doHttpClientPost()这个方法传不过来中文,求怎么传中文??????
2015-08-27
httPost.setEntity(new UrlEncodedFormEntity(list,HTTP.UTF_8)); HttpResponse response = client.execute(httPost); if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { String content = EntityUtils.toString(response.getEntity(),HTTP.UTF_8); System.out.println("content:" +new String(content.getBytes("iso-8859-1"),"utf-8"));
就好了
举报