Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Fields](https://developer.android.com/reference/java/nio/charset/StandardCharsets#lfields) \| [Inherited Methods](https://developer.android.com/reference/java/nio/charset/StandardCharsets#inhmethods)

# StandardCharsets


`
public

final

class
StandardCharsets
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.nio.charset.StandardCharsets |

<br />

*** ** * ** ***

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

- [Standard Charsets](https://developer.android.com/reference/java/nio/charset/Charset#standard)

## Summary

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

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Fields

### ISO_8859_1

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

```
public static final Charset ISO_8859_1
```

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

<br />

### US_ASCII

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

```
public static final Charset US_ASCII
```

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

<br />

### UTF_16

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

```
public static final Charset UTF_16
```

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

<br />

### UTF_16BE

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

```
public static final Charset UTF_16BE
```

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

<br />

### UTF_16LE

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

```
public static final Charset UTF_16LE
```

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

<br />

### UTF_32

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final Charset UTF_32
```

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

<br />

### UTF_32BE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final Charset UTF_32BE
```

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

<br />

### UTF_32LE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final Charset UTF_32LE
```

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

<br />

### UTF_8

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

```
public static final Charset UTF_8
```

Eight-bit UCS Transformation Format

<br />