Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/text.ts>utfEncode

A handy utility collection.
Go to Latest
function utfEncode
import { utfEncode } from "https://deno.land/x/simple_utility@v0.2.2/src/text.ts";

Convert from unicode string to UTF-8 byte array.

Parameters

data: string

unicode string.