Java tutorial
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { /** byte[] -> String */ public static String bytesToString(byte[] bytes) { String str = ""; try { str = new String(bytes, "UTF-8"); // ISO-8859-1 } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return str; } }