From: Yukihiro Matsumoto Date: 2008-02-07T08:22:27+09:00 Subject: Re: STDIN encoding differs from default source file encoding Hi, In message "Re: STDIN encoding differs from default source file encoding" on Thu, 7 Feb 2008 07:05:12 +0900, Dave Thomas writes: |This seems strange: | |dave[RUBY3/Book 16:03:45] echo 'p __ENCODING__' > t.rb |dave[RUBY3/Book 16:03:51] ruby t.rb |# |dave[RUBY3/Book 16:03:55] cat t.rb | ruby |# Not really. The default external encoding honors your locale setting, whereas script encoding does not. Because the input data is basically yours, and scripts are ours to share. matz.