socket.setEncoding([encoding])


设置作为可读流(Readable Stream)的编码。在 [stream.setEncoding()][] 查看更多详情。

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