LEATH
简短的例子private static final Charset UTF_8 = Charset.forName("UTF-8");String text = "Hello World!";byte[] bytes = text.getBytes(UTF_8);System.out.println("bytes= "+Arrays.toString(bytes));System.out.println("text again= "+new String(bytes, UTF_8));版画bytes= [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]text again= Hello World!