The hz_on_fly gem makes replacements in the AR model, which is probably not what you want. Take a look at unicode_japanese . Just do:
Unicode::Japanese.z2h("BOX")
# => "BOX"
My version of the project has been updated for Ruby 1.9.2 (no other AFAIKs). To use it, add this to your Gemfile:
gem 'unicode_japanese',
:git => 'git://github.com/jpgeek/unicode_japanese.git'
source
share