From: Peter Ertl Date: 2005-11-09T05:11:05+09:00 Subject: Re: ASCII code thing...what gives? I think the correct way is not \number -> char but number.chr -> char 65.chr -> "A" try that: irb> (1..255).each {|x| puts "#{x} -> #{x.chr}" } > --- Urspr�ngliche Nachricht --- > Von: "Todd" > An: ruby-talk@ruby-lang.org (ruby-talk ML) > Betreff: ASCII code thing...what gives? > Datum: Wed, 9 Nov 2005 04:57:12 +0900 > > Hello, > > irb(main):001:0> ?T > => 84 > > irb(main):002:0> "\84" > => "84" > > irb(main):003:0> "\124" > => "T" > > irb(main):004:0> "\124\84" > => "T84" > > What? Do these operators not do what I think they should? > > Todd > >