encoding names
Gives the names of the encodings.
encoding names
Description
Gives the names of the encodings with no table, and the name of each .enc file of the folders of encoding dirs, with no .enc. The order of the list is not set: sort it for a stable order.
Returns
A list of encoding names.
Examples
% lsort [encoding names]
ascii identity iso8859-1 unicode utf-8
# An empty file mine.enc in a folder of encoding dirs adds the name mine.
% file mkdir enc
> close [open enc/mine.enc w]
> encoding dirs [list [file join [pwd] enc]]
> lsort [encoding names]
ascii identity iso8859-1 mine unicode utf-8
Errors
% encoding names x
wrong # args: should be "encoding names"
-errorcode TCL WRONGARGS
Facts
- Capability
channels. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1