Hello all JRuby Guys and Gals.
I spent a day trying to convert my Rails app from MRI to JRuby.
As I am using Mongoid instead of ActiveRecord i do not have to change
gems. And all other gems should be compatible.
For the record here is my Gemfile: https://gist.github.com/1305882
The error that occurs is:
Encoding::CompatibilityError in Pages#show
- where line # raised:
incompatible character encodings: UTF-8 and ASCII-8BIT
Extracted source (around line #):
Trace of template inclusion: app/views/layouts/application.html.haml
And here is the full trace: https://gist.github.com/1305847
As i can see the error is when HAML renders the _menu.html.haml file and
that is because it contains the characters “” in UTF-8
Bet the weird thing is that it works perfect in MRI but not JRuby.
So i hope you guys can help me with this
Thanks in advance