Todd P asks,
How do you properly render a string containing UTF-8 characters across all views?
- Todd P answers his own help question this morning:
This is with a MySQL database. When you’re displaying UTF-8 data, the error you get is:
“incompatible character encodings: ASCII-8 BIT and UTF-8″
I added the following to config/environment.rb:
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
And switched from the mysql gem to mysql2 (0.2.7). Also, make sure to update the adapter in config/database.yml.
- Ian passes along our buddy @flavorjones explaining how to coerce ActiveRecord to perform joins across databases
*Lisette brings us the Yiddish word of the day Chutzpah
- Hope to see everyone at this weeks happy hour.