From: Daniel DeLorme Date: 2008-09-17T13:11:48+09:00 Subject: Re: get a portion of a utf8 encoded string Heesob Park wrote: > You can do it using regular expression : > > 'h辰llo'.split(//u)[0, 2].to_s -> h辰 Why make it convoluted when ruby makes it so easy to use regexps: >> puts 'h辰llo'[/.{2}/um] h辰