Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# StandardCharsets

```
class StandardCharsets
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [java.nio.charset.StandardCharsets](https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#) |

Constant definitions for the standard `https://developer.android.com/reference/kotlin/java/nio/charset/Charset`. These charsets are guaranteed to be available on every implementation of the Java platform.

## Summary

| Properties ||
|---|---|
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#ISO_8859_1:java.nio.charset.Charset` ISO Latin Alphabet No. |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#US_ASCII:java.nio.charset.Charset` Seven-bit ASCII, a. |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_16:java.nio.charset.Charset` Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_16BE:java.nio.charset.Charset` Sixteen-bit UCS Transformation Format, big-endian byte order |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_16LE:java.nio.charset.Charset` Sixteen-bit UCS Transformation Format, little-endian byte order |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_32:java.nio.charset.Charset` Thirty-two-bit UCS Transformation Format, byte order identified by an optional byte-order mark. |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_32BE:java.nio.charset.Charset` Thirty-two-bit UCS Transformation Format, big-endian byte order. |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_32LE:java.nio.charset.Charset` Thirty-two-bit UCS Transformation Format, little-endian byte order. |
| static [Charset](https://developer.android.com/reference/kotlin/java/nio/charset/Charset)! | `https://developer.android.com/reference/kotlin/java/nio/charset/StandardCharsets#UTF_8:java.nio.charset.Charset` Eight-bit UCS Transformation Format |

## Properties

### ISO_8859_1

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ISO_8859_1: Charset!
```

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

### US_ASCII

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_16BE: Charset!
```

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

### UTF_16LE

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_16LE: Charset!
```

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

### UTF_32

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_32: Charset!
```

Thirty-two-bit UCS Transformation Format, byte order identified by an optional byte-order mark.

### UTF_32BE

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_32BE: Charset!
```

Thirty-two-bit UCS Transformation Format, big-endian byte order.

### UTF_32LE

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_32LE: Charset!
```

Thirty-two-bit UCS Transformation Format, little-endian byte order.

### UTF_8

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UTF_8: Charset!
```

Eight-bit UCS Transformation Format