byte[]转String new String(bytes, StandardCharsets.UTF_8); String转byte[] str.getBytes(StandardCharsets.UTF_8);