This project is archived and is in readonly mode.

#2188 open
Jonas Nicklas

Encoding error in Ruby1.9 for templates

Reported by Jonas Nicklas | March 9th, 2009 @ 11:44 PM | in 2.3.10

In Ruby 1.9 translating Strings which have non-ascii characters in them does not work for me.

If I have keys like this is my translation file:

  test1: blah
  test2: blåh

Calling this works fine:


However, calling this raises an exception:


Here's the error:

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8)

This is the same error as in #2038, I did run this against edge Rails and it looked like the patch from #2038 has been applied, so I am assuming this is a different issue.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Shared Ticket Bins

Referenced by