Skip to content

Most visited

Recently visited

navigation
Added in API level 19

StandardCharsets

public final class StandardCharsets
extends Object

java.lang.Object
   ↳ java.nio.charset.StandardCharsets


Convenient access to the most important built-in charsets.

Summary

Fields

public static final Charset ISO_8859_1

The ISO-8859-1 charset.

public static final Charset US_ASCII

The US-ASCII charset.

public static final Charset UTF_16

The UTF-16 charset.

public static final Charset UTF_16BE

The UTF-16BE (big-endian) charset.

public static final Charset UTF_16LE

The UTF-16LE (little-endian) charset.

public static final Charset UTF_8

The UTF-8 charset.

Inherited methods

From class java.lang.Object

Fields

ISO_8859_1

Added in API level 19
Charset ISO_8859_1

The ISO-8859-1 charset.

US_ASCII

Added in API level 19
Charset US_ASCII

The US-ASCII charset.

UTF_16

Added in API level 19
Charset UTF_16

The UTF-16 charset.

UTF_16BE

Added in API level 19
Charset UTF_16BE

The UTF-16BE (big-endian) charset.

UTF_16LE

Added in API level 19
Charset UTF_16LE

The UTF-16LE (little-endian) charset.

UTF_8

Added in API level 19
Charset UTF_8

The UTF-8 charset.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.