From: Brian Candler Date: 2009-12-27T20:05:44+09:00 Subject: Re: ruby 1.9 hates you and me and the encodings we rode in on so just get used to it. DJ Jazzy Linefeed wrote: > compare.rb:64:in `gsub': broken UTF-8 string (ArgumentError) Yep. Ruby 1.9 will raise exceptions in all sorts of odd places, dependent on both the tagged encoding of the string *and* its content at that point in time. I got as far as recording 200 behaviours of String in ruby 1.9 before I gave up: http://github.com/candlerb/string19/blob/master/string19.rb The solution I use is simple: stick to ruby 1.8.x. When that branch dies, perhaps reia will be ready. If not I'll move to something else. IMO, both python 3 and erlang have got the right idea when it comes to handling UTF8. -- Posted via http://www.ruby-forum.com/.