Пример #1
0
 public static String encode(String src) throws IOException {
   StringEncoder encoder = new StringEncoder();
   encoder.feed(src.getBytes("utf-8"), 0, src.length());
   encoder.finish();
   return encoder.getValue();
 }