Text 11 Sep 3 notes Ruby 1.9 invalid multibyte char (US-ASCII) when running bundler via Capistrano on FreeBSD

If your Rails app works fine after upgrading to Ruby 1.9 (including bundler install in development environment), but throws an error like this when you deploy it via Capistrano:

... capistrano runs bundler as deployment user ...
... invalid multibyte char (US-ASCII) ...

make sure that the environment variables are set correctly for this user, especially that the LANG variable sets UTF-8 as charset (for instance, LANG=en_US.UTF-8). Of course, you can just set it in the shell profile of the app user, or you can do it the FreeBSD way in login.conf.

  1. rfc2822 posted this

Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.