bytes.
When onError function is specified, it is called on UTF-8 errors allowing recovery using the
Utf8ErrorFunc API. (default: error)
Parameters
Returns
string
The string.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function toUtf8String(bytes, onError?): string
bytes.
When onError function is specified, it is called on UTF-8 errors allowing recovery using the
Utf8ErrorFunc API. (default: error)
| Parameter | Type | Description |
|---|---|---|
bytes | BytesLike | The UTF-8 data to convert. |
onError? | Utf8ErrorFunc | The error handling function. |
string
The string.
Was this page helpful?
