From: Todd Burch Date: 2007-05-11T02:52:50+09:00 Subject: Re: Trouble using string.tr() Todd Burch wrote: > Here's another twist. > > If I set > > instring = 0xF1.chr + 0xF2.chr + 0x4B.chr + 0xF3.chr + 0xF4.chr > > which is ebcdic for "12.34", I get "45.67" in ascii. It looks like > something ( tr() maybe? ) is swallowing characters. > Moving the numbers to the front of the FROM_STRING and the TO_STRING has solved the problem with the 12.34 getting turned into 45.67 - but I suspect I have just moved the error to someplace else. Todd -- Posted via http://www.ruby-forum.com/.