📜  java字符串到字节数组utf8 - Java代码示例

📅  最后修改于: 2022-03-11 14:52:40.038000             🧑  作者: Mango

代码示例1
String s = "some text here";
byte[] b = s.getBytes(StandardCharsets.UTF_8);