From: Newbie Date: 2006-09-27T01:15:17+09:00 Subject: Re: string#[] Why not a 1-character string? Robert Klemme wrote: >> This must be a common newbie question, but I can't find the answer. >> >> Why does string#[] return an ASCII code, rather than a character? >> >> "abc"[1,2] #-> "bc" >> "abc"[1..2] #-> "bc" >> "abc"[1] #-> 98 > > Because there is no character class in Ruby. >