try {
Log.d("Encoding Check", "utf-8 -> euc-kr: " + new String(str.getBytes("utf-8"), "euc-kr"));
Log.d("Encoding Check", "utf-8 -> ksc5601: " + new String(str.getBytes("utf-8"), "ksc5601"));
Log.d("Encoding Check", "utf-8 -> x-windows-949: " + new String(str.getBytes("utf-8"), "x-windows-949"));
Log.d("Encoding Check", "utf-8 -> iso-8859-1: " + new String(str.getBytes("utf-8"), "iso-8859-1"));
Log.d("Encoding Check", "iso-8859-1 -> euc-kr: " + new String(str.getBytes("iso-8859-1"), "euc-kr"));
Log.d("Encoding Check", "iso-8859-1 -> ksc5601: " + new String(str.getBytes("iso-8859-1"), "ksc5601"));
Log.d("Encoding Check", "iso-8859-1 -> x-windows-949: " + new String(str.getBytes("iso-8859-1"), "x-windows-949"));
Log.d("Encoding Check", "iso-8859-1 -> utf-8: " + new String(str.getBytes("iso-8859-1"), "utf-8"));
Log.d("Encoding Check", "euc-kr -> utf-8: " + new String(str.getBytes("euc-kr"), "utf-8"));
Log.d("Encoding Check", "euc-kr -> ksc5601: " + new String(str.getBytes("euc-kr"), "ksc5601"));
Log.d("Encoding Check", "euc-kr -> x-windows-949: " + new String(str.getBytes("euc-kr"), "x-windows-949"));
Log.d("Encoding Check", "euc-kr -> iso-8859-1: " + new String(str.getBytes("euc-kr"), "iso-8859-1"));
Log.d("Encoding Check", "ksc5601 -> euc-kr: " + new String(str.getBytes("ksc5601"), "euc-kr"));
Log.d("Encoding Check", "ksc5601 -> utf-8: " + new String(str.getBytes("ksc5601"), "utf-8"));
Log.d("Encoding Check", "ksc5601 -> x-windows-949: " + new String(str.getBytes("ksc5601"), "x-windows-949"));
Log.d("Encoding Check", "ksc5601 -> iso-8859-1: " + new String(str.getBytes("ksc5601"), "iso-8859-1"));
Log.d("Encoding Check", "x-windows-949 -> euc-kr: " + new String(str.getBytes("x-windows-949"), "euc-kr"));
Log.d("Encoding Check", "x-windows-949 -> utf-8: " + new String(str.getBytes("x-windows-949"), "utf-8"));
Log.d("Encoding Check", "x-windows-949 -> ksc5601: " + new String(str.getBytes("x-windows-949"), "ksc5601"));
Log.d("Encoding Check", "x-windows-949 -> iso-8859-1: " + new String(str.getBytes("x-windows-949"), "iso-8859-1"));
} catch(Exception e) {
e.printStackTrace();
}