List of utility methods to do Chinese to String
String | GB2ISO(String text) GBISO String result = ""; try { result = new String(text.getBytes("GB2312"), "ISO-8859-1"); } catch (UnsupportedEncodingException e) { result = e.toString(); return result; |
String | GBKToUTF(String str) GBK To UTF if (str != null) { try { return new String(str.getBytes("GBK"), "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return null; ... |
String | toChineseOfGBK(String str) to Chinese Of GBK try { return new String(str.getBytes("ISO-8859-1"), "GBK"); } catch (UnsupportedEncodingException localUnsupportedEncodingException) { return str; |