bytes.
When onError function is specified, it is called on UTF-8 errors allowing recovery using the
Utf8ErrorFunc API. (default: error)
Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | BytesLike | The UTF-8 data to convert. |
onError? | Utf8ErrorFunc | The error handling function. |
Returns
string
The string.
