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