From: Pen Ttt on
my system:ubuntu10.04+firefox
shell terminal :utf-8
how to set my irb terminal with the default ASCII encoding?


Attachments:
http://www.ruby-forum.com/attachment/4795/shell_terminal.png

--
Posted via http://www.ruby-forum.com/.

From: Ryan Davis on

On Jun 11, 2010, at 03:57 , Pen Ttt wrote:

> my system:ubuntu10.04+firefox
> shell terminal :utf-8
> how to set my irb terminal with the default ASCII encoding?

I'm kinda surprised that `irb` doesn't have a -K flag... so read up on $KCODE.


From: Pen Ttt on
irb(main):001:0> $KCODE = "U"
=> "U"
when i add $KCODE = "U",the output is ok.
i input in shell :irb,need input $KCODE = "U" everytime?
can i set it?when i open irb , the code is U?
--
Posted via http://www.ruby-forum.com/.