메인 콘텐츠로 건너뛰기

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function toUtf8Bytes(str, form?): Uint8Array
Returns the UTF-8 byte representation of str. If form is specified, the string is normalized.

Parameters

ParameterTypeDescription
strstringThe string to convert.
form?UnicodeNormalizationFormThe normalization form to use.

Returns

Uint8Array The UTF-8 byte representation.

Throws

If the UTF-8 conversion fails.

Source

encoding/utf8.ts:285