From: "Iñaki Baz Castillo" Date: 2011-04-22T02:27:12+09:00 Subject: Re: splitting binary data 2011/4/21 7stud -- : >> 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 Interesting, I also use 1.9.2, but have realized that it fails under irb, but not in case I run the above code in a separate file. -- Iñaki Baz Castillo