From: 7stud -- Date: 2011-04-22T02:13:30+09:00 Subject: Re: splitting binary data "IƱaki Baz Castillo" wrote in post #994264: > 2011/4/20 7stud -- : >> p str.split(pattern) >> >> --output:-- >> ["", "a", "b", "c", "d"] > > Note that this fails under Ruby1.9: > > p str.split(pattern) > ArgumentError: invalid byte sequence in UTF-8 > from (irb):10:in `split' I guess you missed this: puts RUBY_VERSION ... ... ... --output:-- 1.9.2 -- Posted via http://www.ruby-forum.com/.