Because of missing :encoding parameter for mysql 4.1 I have to execute the following command before any fetching queries: ActiveRecord::Base.connection.execute("SET CHARACTER SET utf8") and then I can use @rows = MyModel.find(:all) Without first query table returns ugly characters. It solved my problem but it looks ugly. Definitely for MySQL 4.1. Rails needs "encoding" parameter (like in PostgreSQL adapter). Am I right or is there any another solution? -- JZ
Apparently Analagous Threads
- observe_field and radio button... does not work?
- database.yml and encoding: utf8 -> mysql error
- Predictions with missing inputs
- [Active Record] Missing optional client encoding for MySQL 4.1
- Rails DB defaults to utf8 for mysql -- but unicode for postgresql