Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3322

Re: splitting binary data

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From 7stud -- <bbxx789_05ss@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: splitting binary data
Date Thu, 21 Apr 2011 12:13:30 -0500
Organization Service de news de lacave.net
Lines 28
Message-ID <bbe459046541b7ad39aca75e5822aa7d@ruby-forum.com> (permalink)
References <a27c4fbb30b28a4543b4ed0920037c24@ruby-forum.com> <cfb58e3ca13b30817c52febc64a9b79e@ruby-forum.com> <BANLkTiktwYj=Q-2B+FFDhEnymiucqHp8CQ@mail.gmail.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding Quoted-printable
X-Trace talisker.lacave.net 1303406033 68425 65.111.164.187 (21 Apr 2011 17:13:53 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Thu, 21 Apr 2011 17:13:53 +0000 (UTC)
In-Reply-To <BANLkTiktwYj=Q-2B+FFDhEnymiucqHp8CQ@mail.gmail.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 382009
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <bbe459046541b7ad39aca75e5822aa7d@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3322

Show key headers only | View raw


"Iñaki Baz Castillo" <ibc@aliax.net> wrote in post #994264:
> 2011/4/20 7stud -- <bbxx789_05ss@yahoo.com>:
>> 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/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

splitting binary data hroyd hroyd <hroyd@mailinator.com> - 2011-04-20 03:26 -0500
  Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-20 12:54 -0500
    Re: splitting binary data Iñaki Baz Castillo <ibc@aliax.net> - 2011-04-21 05:52 -0500
      Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:13 -0500
        Re: splitting binary data Iñaki Baz Castillo <ibc@aliax.net> - 2011-04-21 12:27 -0500
          Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:56 -0500
            Re: splitting binary data "Y. NOBUOKA" <nobuoka@r-definition.com> - 2011-04-26 04:47 -0500
  Re: splitting binary data hroyd hroyd <hroyd@mailinator.com> - 2011-04-21 05:01 -0500
    Re: splitting binary data 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-21 12:18 -0500

csiph-web