Java Unicode to Chinese unicodeToChinese(String unicode)

Here you can find the source of unicodeToChinese(String unicode)

Description

unicode To Chinese

License

Open Source License

Declaration

public static String unicodeToChinese(String unicode) 

Method Source Code

//package com.java2s;

public class Main {
    public static String unicodeToChinese(String unicode) {
        StringBuilder out = new StringBuilder();
        if (!isEmpty(unicode)) {
            for (int i = 0; i < unicode.length(); i++) {
                out.append(unicode.charAt(i));
            }/*  ww  w . j  av a 2 s  .c o m*/
        }
        return out.toString();
    }

    public static boolean isEmpty(String value) {
        int strLen;
        if (value == null || (strLen = value.length()) == 0) {
            return true;
        }
        for (int i = 0; i < strLen; i++) {
            if ((Character.isWhitespace(value.charAt(i)) == false)) {
                return false;
            }
        }
        return true;
    }
}

Related

  1. UnicodeTochinese(String dataStr)
  2. unicodeToChinese(String str)
  3. unicodeToGB2312StrWeb(String str)