Java Unicode to Chinese unicodeToChinese(String str)

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

Description

unicode To Chinese

License

Open Source License

Declaration

public static String unicodeToChinese(String str) throws Exception 

Method Source Code

//package com.java2s;

public class Main {
    public static String unicodeToChinese(String str) throws Exception {
        if (str != null) {
            return new String(str.getBytes("ISO-8859-1"), "GBK");
        } else {//from www .  j a  va2  s .  com
            return null;
        }
    }
}

Related

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