在服务器中,我的消息被编码
`Charset charset = Charset.forName("UTF-8");
CharsetDecoder decoder = charset.newDecoder();
CharsetEncoder encoder = charset.newEncoder();
readBuffer=encoder.encode(CharBuffer.wrap(SAY_HELLO));
readBuffer.flip();
channel.write(readBuffer);`
并写入频道,但在服务器上我无法读取我试图读取的数据
`int count = channel.read(buffer);
CharBuffer cbuf = decoder.decode(buffer);
String s1 = cbuf.toString();`
有人知道如何在服务器中读取此编码数据吗?