From: Harry Date: 2007-02-11T06:35:12+09:00 Subject: Re: tr does not work with non-english chars On 2/11/07, J. mp wrote:> Robert Dober wrote:> > On 2/10/07, J. mp wrote:> >>> >> Hi,> >> if I do this> >> ?> puts "usa".tr('a','b')> >> usb> >> => nil> >> >> > This is the idea of a genius , sorry couldn't resist folks ;)> > > >> > Robert>> I can't get my answer from your answers, sorry> anyway, the case is:> >> puts "us��".tr('��','b') -> don't work>> the result shoul be usb but it blocks>>>> --> Posted via http://www.ruby-forum.com/.>>puts "us���".sub('���','a') -- http://www.kakueki.com/ruby/list.html