Added in API level 19

StandardCharsets

class StandardCharsets
kotlin.Any
   ↳ java.nio.charset.StandardCharsets

Constant definitions for the standard Charsets. These charsets are guaranteed to be available on every implementation of the Java platform.

Summary

Properties
static Charset!

ISO Latin Alphabet No.

static Charset!

Seven-bit ASCII, a.

static Charset!

Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark

static Charset!

Sixteen-bit UCS Transformation Format, big-endian byte order

static Charset!

Sixteen-bit UCS Transformation Format, little-endian byte order

static Charset!

Eight-bit UCS Transformation Format

Properties

ISO_8859_1

Added in API level 19
static val ISO_8859_1: Charset!

ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1

US_ASCII

Added in API level 19
static val US_ASCII: Charset!

Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set

UTF_16

Added in API level 19
static val UTF_16: Charset!

Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark

UTF_16BE

Added in API level 19
static val UTF_16BE: Charset!

Sixteen-bit UCS Transformation Format, big-endian byte order

UTF_16LE

Added in API level 19
static val UTF_16LE: Charset!

Sixteen-bit UCS Transformation Format, little-endian byte order

UTF_8

Added in API level 19
static val UTF_8: Charset!

Eight-bit UCS Transformation Format