From: Daniel Berger Date: 2006-05-27T03:38:54+09:00 Subject: Question about -K, $KCODE, command line Hi all, If I run a program from the shell like "ruby test.rb -K u", why isn't $KCODE set within the program to "UTF8"? # test.rb puts $KCODE ruby test.rb -K u -> "NONE" ??? It looks like the only way to change it is to assign to $KCODE directly within the program. Why? Would changing $KCODE from a command line option have unintended side effects? Dan