摘要: getBytes()方法详解 在Java中,String的getBytes()方法是得到一个操作系统默认的编码格式的字节数组。这表示在不同的操作系统下,返回的东西不一样! 1、 str.getBytes(); 如果括号中不写charset,则采用的是Sytem.getProperty("file.e 阅读全文
posted @ 2020-03-29 20:18 gavin5033 阅读(847) 评论(0) 推荐(0) 编辑