From: Yukihiro Matsumoto Date: 2008-02-07T11:56:53+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 11:43:38 +0900, Dave Thomas writes: |Does that apply to strings containing characters > 127? | |irb(main):003:0> "\0x81" |=> "\x00x81" |irb(main):004:0> "\0x81".encoding |=> # |irb(main):005:0> | |Should that be ASCII-8BIT? And is it a readline restriction that I |can't type a utf-8 character into irb? You've typed "\0x81" i.e. \0, x, 8, 1, four characters instead of one. If you type "\x81" you will get ASCII-8BIT. matz.