Encode a string to iso-8859-1 bytes.
iso-8859-1
Throws on non well-formed strings or any codepoints which could not be encoded in iso-8859-1.
Same as:
const latin1fromString = createSinglebyteEncoder('iso-8859-1', { mode: 'fatal' }) Copy
const latin1fromString = createSinglebyteEncoder('iso-8859-1', { mode: 'fatal' })
The string to encode
The encoded bytes
Encode a string to
iso-8859-1bytes.Throws on non well-formed strings or any codepoints which could not be encoded in
iso-8859-1.Same as: