This project is archived and is in readonly mode.

#2038 ✓committed
Akira Matsuda

I18n interpolation fails with multibyte strings on Ruby 1.9

Reported by Akira Matsuda | February 22nd, 2009 @ 12:56 AM

Current Rails I18n.interpolate fails with the following error when multibyte values given on Ruby 1.9.

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

This patch removes unnecessary force_encoding (which basically is not recommended to use), and enables interpolations between multibyte string and values. On the other hand, this patch stops caring about interpolations between two different multibyte encodings. (but who needs it?) Please look at the attached test cases for details.

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>

Referenced by