From: "Jesús Gabriel y Galán" Date: 2008-01-09T20:42:57+09:00 Subject: Re: gsub mass substitution On Jan 9, 2008 12:28 PM, Daniel Brumbaugh Keeney wrote: > On Jan 9, 2008 4:39 AM, Ckvok Kovsky wrote: > > Ruby wasn't designed to deal with those chars in the same way you can > > deal with english-only chars. > > Have you tried setting the character set to Unicode? That can make a > difference. Also, before you abandon Ruby altogether, be aware that > Ruby 1.9 deals with characters completely differently than Ruby 1.8, > so those problems you're having might go away when you upgrade (not > necessarily now, of course, 1.9 being officially 'experimental') 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" Maybe someone can explain if this should work as the OP and myself are expecting or not and why? Jesus.