charset

inline fun charset(charsetName: String): Charset (source)

Platform and version requirements: JVM

Returns a named charset with the given charsetName name.

Exceptions

UnsupportedCharsetException - If the specified named charset is not available.