Java tutorial
//package com.java2s; public class Main { public static String stringFromUtf8ByteArray(byte[] data) { try { return new String(data, "UTF-8"); } catch (Exception e) { return null; } } }