Last Updated: February 25, 2016
·
2.193K
· otobrglez

Fix UTF8 "problem" on Heroku w/ jRuby

If you use Heroku with 3rd party build pack (https://github.com/jruby/heroku-buildpack-jruby) to get jRuby up - you might have problems with UTF8. I use this little confguration "fix" to run jRuby with UTF8 as default encoding.

heroku config:set JRUBY_OPTS="--1.9 -J-Xmx400m -J-Dfile.encoding=utf8"