String sent = "红帽子";
byte[] bytes = ch.getBytes("UTF-8");
发送bytes...
接收到bytes...
String recieved = new String(bytes, "UTF-8");
byte[] bytes = ch.getBytes("UTF-8");
发送bytes...
接收到bytes...
String recieved = new String(bytes, "UTF-8");
byte[] bytes = sent.getBytes("UTF-8");
发送bytes...
接收到bytes...
String recieved = new String(bytes, "UTF-8");