1

Yesterday I tried to switch from MRI to JRuby and I believe that i got all the gems right.

I am using Mongoid and not ActiveRecord so no switching of gem necessary there I think.

The error I get is:

incompatible character encodings: UTF-8 and ASCII-8BIT

The Full trace can be shown here: https://gist.github.com/1305847

And my Gemfile can be shown here: https://gist.github.com/1305882

Does anyone have a clue to what the solution might be?

1
  • Please post the output of both ruby -v and jruby -v Commented Oct 24, 2011 at 1:13

2 Answers 2

1

It turns out there was a problem with jruby 1.6.4. After upgrading to 1.6.5 it works fine.

Sign up to request clarification or add additional context in comments.

Comments

0

Try with running JRuby in 1.9 mode:

$ jruby --1.9 rails s

You can also $ export JRUBY_OPTS=--1.9

2 Comments

What is in here? app/views/layouts/application.html.haml:12
There is an render partial there. Which renders some UTF-8 characters including åäö This is not an error with MRI but just JRuby. Ive read some bug tickets and it seems to be just an JRuby bound error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.