I'm trying to get UTF-8 working, but I can't get it work fully. I have
the data in my MySQL-database, the tables and fields are in utf-8
charset. If I query the database from the terminal, all UTF-8
characters show up nicely.
The pages I'm outputting have the following header
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/
And Unicode characters I'm putting directly into the view files are
also showing up correctly. The encoding parameter in database.yml is
set to utf8. However, strings from the database are output mangled,
both in Safari and Firefox.
Is there anything I've missed?
I'm running Mac OS X 10.5.2, Rails 2.0.2, Ruby 1.8.6, MySQL gem 2.7.
Any help is appreciated.