Decode UTF-8 bytes to a string (strict mode)
Throws on invalid UTF-8 byte sequences
This is similar to new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(arr), but works on all engines.
new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(arr)
The bytes to decode
The decoded string
Decode UTF-8 bytes to a string (strict mode)
Throws on invalid UTF-8 byte sequences
This is similar to
new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(arr), but works on all engines.