From: Yukihiro Matsumoto Date: 2008-02-07T08:50:54+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 08:41:14 +0900, Dave Thomas writes: |So, if -K is deprecated, is it true that the only approved way of |setting the encoding for scripts, and for strings in scripts, is using |the magic comment? If so, that's a nice simplification (and a fairly |big change to my Encoding chapter :( ) I feel sorry for that. |On a related note, how should I tell people to set the encoding in irb? Scripts from STDIN (including irb), and from -e are locale sensitive. matz.