[size=large]
URI u;
try {
u = new URI("http://www.weather.com.cn/data/sk/101010100.html");
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(u);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String content = "";
content = httpclient.execute(httpget, responseHandler);
//content = new String(content.getBytes("ISO-8859-1"),"UTF-8");
com.Log(content);
}catch (URISyntaxException e) {
e.printStackTrace();
}catch (ClientProtocolException e) {
e.printStackTrace();
}catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
[/size]
URI u;
try {
u = new URI("http://www.weather.com.cn/data/sk/101010100.html");
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(u);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String content = "";
content = httpclient.execute(httpget, responseHandler);
//content = new String(content.getBytes("ISO-8859-1"),"UTF-8");
com.Log(content);
}catch (URISyntaxException e) {
e.printStackTrace();
}catch (ClientProtocolException e) {
e.printStackTrace();
}catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
[/size]