Daniel Berger
3/6/2009 4:00:00 PM
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?
Regards,
Dan
PS - A comment in the code also suggests that method doesn't function
properly