From: Dave Thomas Date: 2008-02-07T11:43:38+09:00 Subject: Re: STDIN encoding differs from default source file encoding On Feb 6, 2008, at 7:16 PM, Yukihiro Matsumoto wrote: > In addition, you will get # when you type > __ENCODING__ but it is intended. Remember IRB does parse line by > line. 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? Dave