From: Ammar Ali Date: 2010-11-05T01:50:35+09:00 Subject: Re: Splitting a string into characters - not bytes On Thu, Nov 4, 2010 at 6:42 PM, Adam Prescott wrote: > If you want the array you can do str.chars.to_a. It's worth noting that String#chars is not available in all versions of ruby: >> RUBY_VERSION => "1.9.2" >> "str".chars => # >> RUBY_VERSION => "1.8.7" >> "str".chars => # >> RUBY_VERSION => "1.8.6" >> "str".chars NoMethodError: undefined method `chars' for "str":String from (irb):2 Regards, Ammar