You can always convert the byte array to a string if you know its charset,
val str = new String(bytes, StandardCharsets.UTF_8)
And the default Charset would used if you don’t specify any.
You can always convert the byte array to a string if you know its charset,
val str = new String(bytes, StandardCharsets.UTF_8)
And the default Charset would used if you don’t specify any.