encode

open fun encode(dst: Array<Byte>, offset: Int, s: String)

Encodes the modified UTF-8 bytes corresponding to s into dst, starting at offset.


open fun encode(s: String): Array<Byte>

Returns an array containing the modified UTF-8 form of s.