boolean isGBK(String s) 抛出 UnsupportedEncodingException { if(s.equals(new String(s.getBytes("gbk"))))返回真;别的返回假; }