conn = (HttpURLConnection) mUrl.openConnection();
conn.setRequestMethod("GET");
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-type","application/x-www-form-urlencoded;charset=UTF-8"); //解决乱码问题
conn.connect(); //连接远程服务器
重点这一句:application/x-www-form-urlencoded;charset=UTF-8
new InputStreamReader(is));
改成
new InputStreamReader(is, "UTF-8"));