From: Graham Nicholls (spam_filtered) Date: 2004-08-23T23:45:42+09:00 Subject: Re: tr octal strings David A. Black wrote: > Hi -- > > On Mon, 23 Aug 2004, Graham Nicholls wrote: > >> Can string.tr (and tr!) use octal values? >> >> I can do tr '\234' '\273' to print ���� symbols; how might I do this in >> Ruby, please? > > Just add a comma :-) > > "S".tr("\123","\124") > => "T" > Doh! I had, but also, of course needed the f*ing quotes! Thanks a lot. -- The answer's always "Yes". Now, what's the question?