Java tutorial
//package com.java2s; public class Main { public static boolean isGB2312(char c) { Character ch = Character.valueOf(c); String sCh = ch.toString(); try { byte[] bb = sCh.getBytes("gb2312"); if (bb.length > 1) { return true; } } catch (java.io.UnsupportedEncodingException ex) { return false; } return false; } }