List of utility methods to do ISO to GB String
String | iso2Gb(String gbString) Converts string from GB2312 encoding ISO8859-1 (Latin-1) encoding. if (gbString == null) return null; String outString = ""; try { byte[] temp = null; temp = gbString.getBytes("ISO8859-1"); outString = new String(temp, "GB2312"); } catch (java.io.UnsupportedEncodingException e) { ... |
String | ISO2GB(String text) ISOGB String result = ""; try { result = new String(text.getBytes("ISO-8859-1"), "GB2312"); } catch (UnsupportedEncodingException e) { result = e.toString(); return result; |