Tcl comes with a variety of character set tables, but has no
concept of aliases for character set names. For example,
the Microsoft's "code pages" are named "cpNNNN", but
these same charsets are also known as "windows-NNNN"
in the rest of the world.
As a result, the http package, that comes with TCL is not
always capable of properly translating the arriving pages.
Tcllib has a mime-package, which maintains a long list of
lists of character sets' aliases -- exactly because Tcl core's
encoding functionality is lacking.
Can something, please, be done? The only workaround
currently available is to manually create links (hard or
symbolic) under the $TCL_LIBRARY/encodings...
|