← Docs
kotlin-stdlib / kotlin.text / charset

charset

JVM
1.0
fun charset ( charsetName : String ) : Charset
(source)

Returns a named charset with the given charsetName name.

Exceptions

UnsupportedCharsetException - If the specified named charset is not available.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .