From: Hans de Graaff Date: 2009-05-28T18:58:03+09:00 Subject: [ruby-core:23584] [Bug #1528] setlocale is not initialized causing problems when using iconv Bug #1528: setlocale is not initialized causing problems when using iconv http://redmine.ruby-lang.org/issues/show/1528 Author: Hans de Graaff Status: Open, Priority: Normal ruby -v: 1.8.6, 1.8.7 Current versions of ruby 1.8.6 and 1.8.7 have problems when using Iconv. The problem and a patch to solve the issue are described in this thread, originally on ruby-talk. http://www.nabble.com/Iconv-and-incompatible-encodings-td5060857.html Without this patch I get (with ruby 1.8.7_p72): ruby -e "require 'iconv'; puts Iconv.iconv('ASCII//TRANSLIT', 'UTF-8', '����x')" ??x With this patch I get: ruby -e "require 'iconv'; puts Iconv.iconv('ASCII//TRANSLIT', 'UTF-8', '����x')" eox ---------------------------------------- http://redmine.ruby-lang.org