okio
/
okio
/
ByteString
/
Companion
/
encode
jvm
encode
@
JvmStatic
()
@
JvmName
(
name =
"encodeString"
)
fun
String
.
encode
(charset:
Charset
= Charsets.UTF_8):
ByteString
Content copied to clipboard
Returns a new
ByteString
containing the
charset
-encoded bytes of this
String
.