zilkey/active_hash — Issue #44: Cannot have non-english characters in hash data.
Author: ccompass
Created: 2011-12-29 22:31:22+00:00
State: open

I am trying to store Country with two languages. So I have :id, :name, :name_ch for every country. I found that if I use English characters for :name_ch, it let me access either name or name_ch with no problem. If I use Chinese character for :name_ch, it throws this error.

Syntax error, unexpected $end, expecting '}'
{:id => 1, :name => "China",:name_ch=>"中国"},
Is there a fix for this? I think it is best if I can keep the translations in the hash data instead of having to declare them in i18n yml file.