From: Roger Pack Date: 2009-03-07T09:10:50+09:00 Subject: Re: Pure ruby iconv? Daniel Berger wrote: > Hi, > > It looks like Rails 2.x requires the iconv library. Unfortunately, > libiconv requires mingw or cygwin to build properly. Since I have > neither, I'm in a bit of a bind. > > I thought there was a pure Ruby library (or three) out there that > could do what iconv does, but I've never done the research. > > Specifically, it looks like ActiveSupport requires it: > > activesupport-2.2.2\lib\active_support\inflector.rb > > # Replaces accented characters with their ascii equivalents. > def transliterate(string) > Iconv.iconv('ascii//ignore//translit', 'utf-8', string).to_s > end > > Any suggestions? Or do I need to put a bounty out there for a pure > ruby iconv now? You could download mingw :) http://github.com/oneclick/rubyinstaller/tree/master Good luck! -=r -- Posted via http://www.ruby-forum.com/.