The content to decode as a string
.
A thenable that resolves to the encoded Uint8Array
.
Encodes the content of a string
to a Uint8Array
using the
provided encoding.
The content to decode as a string
.
Additional context for picking the encoding.
Readonly
encoding: stringAllows to explicitly pick the encoding to use. See TextDocument.encoding for more information about valid values for encoding. Using an unsupported encoding will fallback to the default configured encoding.
A thenable that resolves to the encoded Uint8Array
.
Encodes the content of a string
to a Uint8Array
.
The encoding is picked based on settings.
A thenable that resolves to the encoded Uint8Array
.
Encodes the content of a
string
to aUint8Array
.Will pick an encoding based on settings.