I bought Agile Web Development With Rails, and followed most of it's
directions on setting up the database to accept and decipher utf-8.
Up to this point, it works wonderfully (especially for a website with
some Japanese translations) except for one problem: ruby (don't think
it's rail's fault) doesn't seem to accept Japanese letters in their
When I command, "rake db:migrate", it gives me an error that character
"\336" in one of my migration is indecipherable. I suspect rake is
having a problem with the default value I've given a migration to
insert for a Japanese name. Furthermore, I need a hash to
automatically translate a few english words into japanese. Assuming
the problem resides in ruby itself, there's no way I can make one
inside rail's controller. Is there some way to initialize a hash with
english words as keys, and japanese words (as in, Chars objects) as
buckets outside of migration/controller/model, and import that into a
Thanks in advance!