setEncoding

abstract fun setEncoding(encoding: String)

The readable.setEncoding() method sets the encoding for the Readable stream. This method must be called before the first 'data' event is emitted by the stream.

Parameters

encoding

The encoding to use.