示例#1
0
 public static byte[] getBytesUtf8(final String string) {
   return string.getBytes(StringUtils.charsetUTF8());
 }
示例#2
0
 public static String newStringUtf8(final byte[] bytes) {
   return new String(bytes, StringUtils.charsetUTF8());
 }