From: Max Williams Date: 2008-04-23T02:05:48+09:00 Subject: Re: character substitution using tr() Jan Dvorak wrote: > With ruby 1.9 your code works fine without modifications, with ruby 1.8 > and > it's support for unicode (or lack of thereof) it might be quite a > problem to > get it working. > ah...i'm a bit scared to change our project over to ruby 1.9 (i didn't know there was a 1.9) to solve this problem. I ended up just picking the most commonly used accents and doing individual gsubs on the strings to swap them out. Feels dirty but it works. Thanks a lot for the info! max -- Posted via http://www.ruby-forum.com/.