java获取字符串的字节长度

393 阅读1分钟
taskContent.getBytes(StandardCharsets.UTF_8).length;