注意: 此页面尚未翻译成中文。以下内容为英文原版。
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.
