Java Reference
In-Depth Information
for (String name : Charset.availableCharsets().keySet())
System.out.println(name);
Every instance of the Java virtual machine has a default character set
that is determined during virtual-machine startup and typically depends
on the locale and encoding being used by the underlying operating sys-
tem. You can obtain the default
Charset
using the static
defaultCharset
method.