http://mllab.tistory.com/316

 

public static String unicodeConvert(String str) {
    StringBuilder sb = new StringBuilder();
    char ch;
    int len = str.length();
    for (int i = 0; i < len; i++) {
        ch = str.charAt(i);
        if (ch == '\\' && str.charAt(i+1) == 'u') {
            sb.append((char) Integer.parseInt(str.substring(i+2, i+6), 16));
            i+=5;
            continue;
        }
        sb.append(ch);
    }
    return sb.toString();
}

 

Posted by 張's blog
,