Source:
package com.izeye.examples.charset;
import java.nio.charset.*;
public class CharsetExample {
public static void main(String[] args) {
String defaultCharset = Charset.defaultCharset().displayName();
System.out.println("Default charset: " + defaultCharset);
}
}
Output:
Default charset: x-windows-949
Description:
내 컴퓨터의 디폴트 charset은 x-windows-949임을 확인할 수 있다.