求帮助 用httpclient的下载网页乱码?
如题
HttpClient httpClient = new DefaultHttpClient(); HttpResponse response ; HttpGet get =new HttpGet("http://www.8684.cn/"); try { response = httpClient.execute(get); HttpEntity entity = response.getEntity(); System.out.println(EntityUtils.toString(entity)); } catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }