Java tutorial
//package com.java2s; public class Main { public static String bytes2String(byte[] b) throws Exception { String r = new String(b, "UTF-8"); return r; } }