Am I correct that there’s currently no way to deco...
# multiplatform
k
Am I correct that there’s currently no way to decode a
String
from a
ByteArray
using a given charset in a KMP setting? I should be using
okio
to do that?
I see
ByteArray.toString(Charset)
but it’s marked as JVM only. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-string.html
f
you can use
ByteArray.decodeToString()
but it use UTF-8 encoding for default
k
Oh neat, thanks.
👍 1
I have no idea how I missed that