If you use ActiveRecord::Base.connection.create_database you'll notice that by default the created db will use latin1 encoding. I created a plugin to handle different charset and collations (on top of helping you with other boring DB tasks).
You can check out the early version of the plugin svn checkout svn://rubyforge.org/var/svn/raketasks/db_tasks (I really need to move my projects out of rubyforge, it's a real pain to browse the code) Anyway, if people consider that it's an important feature, I'd be glad to submit a patch. Ohh, by the way, when you set your database with a specific charset, tables inherit the collation and charset automatically. Rails handles encoded queries by adding an encoding value in the environment file. (database.yml) I have a rake tasks which does that for you if you are too lazy to type 3 times encoding: utf8 ;) Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
