unicode(n) Tcl Built-In Commands unicode(n)

```

```

# [NAME](#NAME)

unicode - Unicode character transforms

# [SYNOPSIS](#SYNOPSIS)

**unicode function** ?*options*? *string*

```

```

# [DESCRIPTION](#DESCRIPTION)

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

[**unicode tonfc** ?**-profile** *profile*? *string*](#unicode)

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

[**unicode tonfd** ?**-profile** *profile*? *string*](#unicode~2)

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

[**unicode tonfkc** ?**-profile** *profile*? *string*](#unicode~3)

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

[**unicode tonfkd** ?**-profile** *profile*? *string*](#unicode~4)

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](#SEE_ALSO)

[Tcl\_UtfToNormalized(3)](/man/os/tcl/Tcl_UtfToNormalized.3)

# [KEYWORDS](#KEYWORDS)

Unicode, normalize

9.1 Tcl

---

Document: unicode(n) from tcl 9.1.0-r2 (Chainguard OS)
Source: https://downloads.sourceforge.net/project/tcl/Tcl/9.1.0/tcl9.1.0-src.tar.gz
