Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; import org.apache.http.util.EncodingUtils; public class Main { public static String UTF8toEUCKR(String utf8) throws UnsupportedEncodingException { byte[] euckr = utf8.toString().getBytes("EUC-KR"); return byteToString(euckr); } public static String byteToString(byte[] $byte) { String result = EncodingUtils.getString($byte, 0, $byte.length, "EUC-KR"); return result; } }