OS Manuals

/opt/chainguard/gftools/bin/idna

Google Fonts Tools: build, fix, check and package fonts for the Google Fonts library

From gftools 0.10.8-r0 (os), captured 2026-11-05 by running idna --help (exit 0). permalink

usage: python -m idna [-h] [-e | -d] [--strict] [--version] [domain ...]

Convert a domain name between its Unicode (U-label) and ASCII-compatible (A-label) forms. With no
mode flag, the direction is chosen from the first input — if it contains an xn-- label the stream
is decoded, otherwise it is encoded — and the same mode is applied to every remaining input. UTS
#46 mapping is applied by default; pass --strict to disable it. When no domains are given on the
command line and stdin is piped, one domain per line is read from stdin.

positional arguments:
  domain        One or more domain names to convert. Omit to read from stdin.

options:
  -h, --help    show this help message and exit
  -e, --encode  Encode the input to its ASCII A-label form.
  -d, --decode  Decode the input from its ASCII A-label form.
  --strict      Disable the default UTS #46 mapping and apply IDNA 2008 rules verbatim.
  --version     show program's version number and exit
Options (5)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-e, --encodeEncode the input to its ASCII A-label form.help
-d, --decodeDecode the input from its ASCII A-label form.help
--strictDisable the default UTS #46 mapping and apply IDNA 2008 rules verbatim.help
--versionshow program's version number and exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.