Encoding
toUtf8String
Returns the string represented by the UTF-8 data 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.
Source
Was this page helpful?