philip.mcallister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-03 05:31 UTC
activerecord utf8 special characters odd behavior
Since upgrading to Rails 1.2.* my ActiveRecord has not been acting properly: When I perform a .find and give a UTF8 string as a conditional, the select statement gives me the following: SELECT * FROM albums WHERE (name = ''MedĂșlla'') When I perform a .save on a model UTF8 and other characters ( . ! ) get stripped out of the query: INSERT INTO albums (`name`) VALUES(''Medlla'') The database encoding is set to utf8 in the database.yml file. character_set_database and character_set_system are both set to utf8 in the mysql database. Thoughts? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---