//System.out.println(System.getProperty("file.encoding"));
//System.out.println(Charset.defaultCharset());
返回本地操作系统默认的字符编码类型:
String.getBytes();如"你".getBytes()获得“你”的GBK字符编码
获得系统的默认字符编码
最新推荐文章于 2023-05-13 11:11:17 发布
//System.out.println(System.getProperty("file.encoding"));
//System.out.println(Charset.defaultCharset());
返回本地操作系统默认的字符编码类型:
String.getBytes();如"你".getBytes()获得“你”的GBK字符编码