String value="테스트";
String charSet[] = {"euc-kr", "ksc5601", "iso-8859-1", "8859_1", "ascii", "UTF-8"};
for(int k = 0; k < charSet.length; k++) {
for(int j = 0; j < charSet.length; j++) {
System.out.println(charSet[k] + " to " + charSet[j] + " = " + new String(value.getBytes(charSet[k]),charSet[j]));
}
}