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