Here you can find the source of isGB2312(char c)
public static boolean isGB2312(char c)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isGB2312(char c) { Character ch = new Character(c); String sCh = ch.toString(); try {//from w w w. j a v a 2 s . c om byte[] bb = sCh.getBytes("gb2312"); if (bb.length > 1) { return true; } } catch (java.io.UnsupportedEncodingException ex) { return false; } return false; } }