Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static String utf8StringFromBytes(byte[] bytes) { try { return new String(bytes, "utf-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return null; } }