object Companion
source · line 62public companion
Canonical named encodings, alias lookup, and backend information.
property Iso8859_1
source · line 86public val Iso8859_1: Charset
get: public read-only
ISO-8859-1 Latin-1 encoding.
property Utf8
source · line 78public val Utf8: Charset
get: public read-only
Unicode UTF-8 encoding.
property EucJp
source · line 134public val EucJp: Charset
get: public read-only
The EUC-JP Japanese encoding.
property Utf32LE
source · line 110public val Utf32LE: Charset
get: public read-only
UTF-32 with little-endian code units.
property Ascii
source · line 82public val Ascii: Charset
get: public read-only
The seven-bit US-ASCII encoding.
property availableNames
source · line 143public val availableNames: Array<String>
get: public read-only
Returns the encoding names advertised by the linked conversion backend.
getter get
source · line 143get(): Array<String>
property Big5
source · line 126public val Big5: Charset
get: public read-only
The Big5 Traditional Chinese encoding.
property Windows1252
source · line 90public val Windows1252: Charset
get: public read-only
Windows-1252 Western European encoding.
property Utf16
source · line 94public val Utf16: Charset
get: public read-only
UTF-16 encoding whose byte order is selected by the conversion options and BOM.
property Utf16LE
source · line 98public val Utf16LE: Charset
get: public read-only
UTF-16 with little-endian code units.
function forNameOrNone
source · line 71public fun forNameOrNone(name: String): Charset?
Resolves a supported name or alias, returning None for an unsupported encoding.
parameter name
source · line 71name: String
property backendVersion
source · line 155public val backendVersion: String
get: public read-only
The version reported by the linked character-conversion backend.
getter get
source · line 155get(): String
property Iso2022Jp
source · line 138public val Iso2022Jp: Charset
get: public read-only
The stateful ISO-2022-JP Japanese encoding.
property Utf16BE
source · line 102public val Utf16BE: Charset
get: public read-only
UTF-16 with big-endian code units.
property ShiftJis
source · line 130public val ShiftJis: Charset
get: public read-only
The Shift_JIS Japanese encoding.
property Utf32BE
source · line 114public val Utf32BE: Charset
get: public read-only
UTF-32 with big-endian code units.
property Gbk
source · line 122public val Gbk: Charset
get: public read-only
The GBK Chinese encoding.
property Utf32
source · line 106public val Utf32: Charset
get: public read-only
UTF-32 encoding whose byte order is selected by the conversion options and BOM.
property Gb18030
source · line 118public val Gb18030: Charset
get: public read-only
The GB18030 Chinese encoding.
function forName
source · line 67public fun forName(name: String): Charset
Resolves a supported encoding name or alias to its canonical charset. Unsupported names throw UnsupportedCharsetException.
parameter name
source · line 67name: String