判断字符串编码类型 public static String getEncoding(String str) { String encode = "GBK"; try { if (str.equals(new String(str.getBytes(encode), encode))) { return encode; } } catch (Exception except java 2023-09-29 43 点赞 0 评论 65 浏览