Decodes UTF-8 bytes to a string.
Pass { fatal: true } for strict UTF-8 decoding that throws on invalid input. The default lenient mode substitutes the Unicode replacement character (U+FFFD) for malformed sequences.
{ fatal: true }
Optional
Decodes UTF-8 bytes to a string.
Pass
{ fatal: true }for strict UTF-8 decoding that throws on invalid input. The default lenient mode substitutes the Unicode replacement character (U+FFFD) for malformed sequences.