decode

fun decode(bytes: ByteArray, languageHint: String? = null): String

bytes as text. languageHint, a language the text is likely in, settles a reading the bytes leave close and never overrules a clear one. A byte no table reads becomes U+FFFD.