用HttpURLConnection连接web端,web接收数据,及android端接收数据均是utf-8格式
但是最终inputstream被byte数组接收,并转换成string类型是乱码了,求大神解救
if(conn.getResponseCode()==200){
InputStream inStream = conn.getInputStream();
byte[] data=StreamTool.read(inStream);
System.out.println("&&&&&&&&"+data);
String result = new String(data,"utf-8");
System.out.println("**********"+result);
if(result.equals("Sucess")){
boolean flag = true;
return flag;
}
}
![图片说明](https://img-ask.csdn.net/upload/201508/13/1439466047_75275.png)