Java StandardCharsets US_ASCII

Syntax

StandardCharsets.US_ASCII has the following syntax.

public static final Charset US_ASCII

Example

In the following code shows how to use StandardCharsets.US_ASCII field.


/*from  w  ww . j  a va 2  s .  c  o  m*/

import java.nio.charset.StandardCharsets;

public class Main {
  public static void main(String[] args) throws Exception {
    System.out.println(StandardCharsets.US_ASCII.name());
  }

}




















Home »
  Java Tutorial »
    java.nio.charset »




Charset
CharsetDecoder
CharsetEncoder
StandardCharsets