beetlebug▾
/

encoding userTcl 9.1 only

Gives the encoding of the user.

encoding user

Description

Gives the encoding of the locale of the user. In ztcl it is utf-8.

Returns

An encoding name.

Examples

% encoding user
utf-8

Errors

% encoding user x
wrong # args: should be "encoding user"
-errorcode TCL WRONGARGS

Facts

Capability
channels. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 only.
Since
ztcl 1.0.0-beta.1

See also