socket.setEncoding([encoding])


设置作为可读流的编码。在 readable.setEncoding() 查看更多详情。

Set the encoding for the socket as a Readable Stream. See readable.setEncoding() for more information.