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

std/node/internal/idna.ts>encode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encode
import { encode } from "https://deno.land/std@0.125.0/node/internal/idna.ts";

Converts a string of Unicode symbols (e.g. a domain name label) to a Punycode string of ASCII-only symbols.

Parameters

str: string

The string of Unicode symbols.