| Java FAQ | ||
| JSP FAQ | ||
| Servlet FAQ | ||
XyzWs Java FAQ:
How to get default character set for the Java virtual machine?
Printer-friendly version |
Mail this to a friend
|
Advertisement
|
How to get default character set for the Java virtual machine?Every instance of the Java virtual machine has a default charset, which may or may not be one of the standard charsets. The default charset is determined during virtual-machine startup and typically depends upon the locale and charset being used by the underlying operating system. In Java 5.0, the
...
public static void main(String[] args) {
Charset dfset = Charset.defaultCharset();
out.println(dfset.name());
}
...
In the previous version of Java (JDK 1.4), you can get it from the |