Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/text_encoding.ts>TextEncoder

A modern runtime for JavaScript and TypeScript.
Go to Latest
class TextEncoder
import { TextEncoder } from "https://deno.land/x/deno@v0.28.0/cli/js/text_encoding.ts";

Properties

readonly
encoding: string

Returns "utf-8".

readonly
[Symbol.toStringTag]: string

Methods

encode(input?): Uint8Array

Returns the result of running UTF-8's encoder.

encodeInto(input: string, dest: Uint8Array): TextEncoderEncodeIntoResult