Scroll to navigation

unicode(3tcl) Tcl Built-In Commands unicode(3tcl)


NAME

unicode - Unicode character transforms

SYNOPSIS

unicode function ?options? string


DESCRIPTION

The command performs one of several Unicode character transformations, depending on function which may take the values described below.

Returns string normalized as per Unicode Normalization Form C (NFC).

Returns string normalized as per Unicode Normalization Form D (NFD).

Returns string normalized as per Unicode Normalization Form KC (NFKC).

Returns string normalized as per Unicode Normalization Form KD (NFKD).

The normalization forms NFC, NFD, NFKC and NFKD referenced above are defined in Section 3.11 of the Unicode standard (see https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/).

The -profile option determines the command behavior in the presence of conversion errors. The passed profile must be strict or replace. See the PROFILES section in the documentation of the encoding command for details on profiles.

SEE ALSO

Tcl_UtfToNormalized(3tcl)

KEYWORDS

Unicode, normalize

9.1 Tcl