binary.utf8()
Encodes text as UTF-8 bytes.
Signature
binary.utf8(value)
Parameters
One char or string.
Returns
New packed u8 bytes.
Behavior
Copies the UTF-8 representation.
Errors
Nontext input.
Example
use binary
assert(count(binary.utf8('é')) == 2)