Java Utililty Methods Chinese to String

List of utility methods to do Chinese to String

Description

The list of methods to do Chinese to String are organized into topic(s).

Method

StringGB2ISO(String text)
GBISO
String result = "";
try {
    result = new String(text.getBytes("GB2312"), "ISO-8859-1");
} catch (UnsupportedEncodingException e) {
    result = e.toString();
return result;
StringGBKToUTF(String str)
GBK To UTF
if (str != null) {
    try {
        return new String(str.getBytes("GBK"), "UTF-8");
    } catch (UnsupportedEncodingException e) {
        e.printStackTrace(); 
return null;
...
StringtoChineseOfGBK(String str)
to Chinese Of GBK
try {
    return new String(str.getBytes("ISO-8859-1"), "GBK");
} catch (UnsupportedEncodingException localUnsupportedEncodingException) {
return str;