From: "Jesús Gabriel y Galán" Date: 2008-01-09T23:03:25+09:00 Subject: Re: gsub mass substitution On Jan 9, 2008 2:53 PM, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: gsub mass substitution" > on Wed, 9 Jan 2008 20:42:57 +0900, "=?ISO-8859-1?Q?Jes=FAs_Gabriel_y_Gal=E1n?=" writes: > > |I've tried this and still doesn't work as expected > | > |jesus@jesus-laptop:~$ irb1.8 -KU > |irb(main):001:0> "âbcdë".tr "âë", "ae" > |=> "eebcdee" > > Adding > > require 'jcode' > > may help you, Thanks, Matz. This works: jesus@jesus-laptop:~$ irb1.8 -KU irb(main):001:0> require 'jcode' => true irb(main):002:0> "âbcdë".tr "âë", "ae" => "abcde" Although I don't understand all the nuances that are coming into play here. > or bring you another trouble. YMMV. This left me a bit nervous, but as I'm not in need of this (I'm not the OP) I'll leave it for later when I have more time to understand more about this issue. Thanks for answering, Jesus.