ktor-io / io.ktor.utils.io.core / writeText

writeText

fun Output.writeText(text: CharSequence, fromIndex: Int = 0, toIndex: Int = text.length, encoder: CharsetEncoder): Unit
Deprecated: Use the implementation with Charset instead

Writes text characters in range \[fromIndex .. toIndex) with the specified encoder

fun Output.writeText(text: CharSequence, fromIndex: Int = 0, toIndex: Int = text.length, charset: Charset = Charsets.UTF_8): Unit
fun Output.writeText(text: CharArray, fromIndex: Int = 0, toIndex: Int = text.size, charset: Charset = Charsets.UTF_8): Unit

Writes text characters in range \[fromIndex .. toIndex) with the specified charset