js function to determine whether it contains characters other than GBK
boolean isGBK(String s) throws UnsupportedEncodingException { if(s.equals(new String(s.getBytes("gbk")))) return true; else return false; }
2024-11-17