BufferedReader reader =newBufferedReader(newInputStreamReader(connection.getInputStream(),"utf-8")); //设置ç¼ç , å¦åä¸æä¹±ç
String line=null;
while((line= reader.readLine())!=null) {
line = new String(line.getBytes(), "utf-8"); // 设置ç¼ç æ¹å¼
System.out.println(line);
}
温馨提示:内容为网友见解,仅供参考