W3cubDocs

/Kotlin

stringFromUtf8

Platform and version requirements: Native (1.3)
fun ByteArray.stringFromUtf8(): String
fun ByteArray.stringFromUtf8(
    start: Int = 0, 
    size: Int = this.size
): String

Converts an UTF-8 array into a String. Replaces invalid input sequences with a default character.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/string-from-utf8.html