StandardCharsets.ISO_8859_1 has the following syntax.
public static final Charset ISO_8859_1
In the following code shows how to use StandardCharsets.ISO_8859_1 field.
/* ww w. ja va 2 s.co m*/ import java.nio.charset.StandardCharsets; public class Main { public static void main(String[] args) throws Exception { System.out.println(StandardCharsets.ISO_8859_1.name()); } }
The code above generates the following result.