解决android客户端显示中文乱码问题
1 HttpResponse httpResponse = httpclient.execute(httppost);
2 int statusCode = httpResponse.getStatusLine().getStatusCode();
3 if(statusCode==HttpStatus.SC_OK)
4 {
5 //获得返回结果
6 response =EntityUtils.toString(httpResponse.getEntity(),"UTF-8");
7 }
主要是解决servlet返回来的数据显示为乱码