From: Bertram Scharpf Date: 2007-03-26T02:34:13+09:00 Subject: Re: adding anotehr each method to String Hi, Am Sonntag, 25. M�r 2007, 16:25:05 +0900 schrieb Une B�vue: > "zero".each_char{|c| puts c} > > would print-out : > z > e > r > o The split method was already proposed. "another".split // "another".split "" "another".scan /./ "�n�th�r".scan /./u # will preserve UTF-8 characters "another".each_byte { |x| c = x.chr ; ... } "another".unpack( "C*") "�n�th�r".unpack( "U*") Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de