Wednesday, June 08, 2005

Using Localization in Windows

By default Ruby in windows doesn't come with iconv. So when we use Localization in our application, it will fail in windows saying "No such file to load -- iconv" . To fix this problem,

Download iconv from Sourceforge here:
http://prdownloads.sourceforge.net/gettext/libiconv-1.9.1.bin.woe32.zip?download

and extract the .dll to your Ruby directory (e.g. c:\ruby)

  • iconv.dll goes to c:\ruby\bin
  • if that doesn’t work, put iconv.dll in c:\windows\system32

Then, you’ll need to download ruby from
http://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.2-i386-mswin32.zip

And extract the iconv.so to your ruby directory also.

*iconv.so goes to lib\ruby\1.8\i386-mswin32\iconv.so

If you get a version mismatch error, try the iconv files from
http://www.dll-files.com/dllindex/dll-files.shtml?iconv

0 Comments:

Post a Comment

<< Home