encode
fun CharsetEncoder.encode(input: CharSequence, fromIndex: Int = 0, toIndex: Int = input.length): ByteReadPacket
Deprecated (with error)
Use writeText on Output instead.
Replace with
import io.ktor.utils.io.core.writeText
Content copied to clipboard
dst.writeText(input, fromIndex, toIndex, charset)
Content copied to clipboard