Not sure if it'll help you or not (especially since there isn't an ActiveRecord driver yet) but my new Mysql2 gem forces the use of UTF-8 for connections to MySQL as well as strings in 1.9 - http://github.com/brianmario/mysql2
I'll be working on and releasing an ActiveRecord driver soon, but would love some help if anyone knows of *any* docs on a driver spec? Anyway, I'm curious if some simple tests with this gem fix your issue. -Brian On Apr 6, 11:04 am, "michael.hasenst...@googlemail.com" <michael.hasenst...@googlemail.com> wrote: > Hi, > > I fetched a forked mysql driver and got rid of this error for strings > fetched from the database. > > BUT all I had to do to see this message again was to enter a non-ASCII > character in a (login) form field and there it was! > > It doesn't matter that I don't even allow non-ASCII characters right > now because there's a validation regex restricting to [a-Z0-9]. > > That means any user can disable my application with the innocent usage > of a perfectly legal character. > > Last time I inquired about this issue was last September, and after > hearing "no solution" I abandoned any attempts of pre-beta Rails 3 > testing. This is so essential, and so easy to trigger! - I wonder why > it's still so easy to cause a major disaster? > > Oh, btw, using the latest git/svn versions (as of this minute) of > Rails3-master and Ruby 1.9.2-head. > > Michael -- 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 rubyonrails-c...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.