実稼働環境 (CentOS 5.6) でこのエラーが発生しますが、開発環境 (Ubuntu 11.04) では問題なく動作します。どちらの環境でも、アプリは Ruby 1.9.3 と Rails 3.0.9 を使用し、パッセンジャーと nginx で提供されます。私の mechanize gem のバージョンは 2.3 です。
code converter not found (UTF-8)
このコードの最後の行はそれを引き起こします:
mech = Mechanize.new
page = mech.get("http://myurl.com/login.php?login_name=a&password=b")
form = page.form_with(:name => "loginForm")
form.field_with(:name => "active_pgm").value = '1'
page = form.submit
何か案は?私はconfig.encoding = "utf-8"
自分のapplication.rbに持っています。