Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; 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 (UnsupportedEncodingException ex) { return false; } return false; } }