I'm trying to convert a byte array to a string. The problem is that UTF-8 won't work. I can't show "ü", "ä" or something like this. Can anyone help me?
public static String byteToString(byte[] bytes) {
String str = new String(bytes, Charsets.UTF_8);
return str;
}
Would be nice if it works down until API 8 Android
new String(bytes, "UTF-8");?