From: dave.burt@... Date: 2005-08-12T09:56:11+09:00 Subject: Re: UTF-8 encoding >>> utf8_string = Iconv.new('iso-8859-1', 'utf-8').iconv(iso_8859_string) > >> I'm running on a windows system, that could be a problem? Also >> i'm getting "test.rb:4: uninitialized constant Iconv (NameError)" >> when testing. > > >You'll need to put the line: > >require 'iconv' > >at the top of your program to use the Iconv.* functions. I don't >have access to a Windows box, but if it's part of Ruby's standard >library, I'd assume it's available on Windows. The One-Click Installer still doesn't include Iconv (the developers are tracking it as an open issue). The Rails wiki has some info on how to get it going: http://wiki.rubyonrails.com/rails/show/iconv (See the Windows section.) To summarize, the Ruby-mswin32 distribution at http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html contains the required files. You can also get the required iconv.dll from gettext on SourceForge: http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458 Cheers, Dave