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