getCharset

abstract fun getCharset(): Charset

Provides access to the character set associated with an object.

This allows nio oriented code to use more natural character encoding/decoding methods, whilst allowing existing code to continue to rely on special-case error handling for UTF-8.

Return

the character set associated with this object