encoding system ?encoding?
Set the system encoding to encoding. If encoding is omitted then the command returns the current system encoding. The system encoding is used whenever Tcl passes strings to system calls.
RS 2005-06-14: On Windows, a different encoding is used for consoles (cmd.exe). You can find out which with
fconfigure stdout -encoding
which gives cp437 for KBK in New York and me in Germany. Reconfiguring stdout doesn't really work - even if you
fconfigure stdout -encoding cp1252
the stubborn thing still stays with cp437...
See also: