From 272729e0a339d80bc422fcbdfc86dd60e3e4c030 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 25 Feb 2006 23:54:57 +0000 Subject: Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes (closes #3699) [Masao Mutoh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/connections/native_mysql/connection.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/connections/native_mysql/connection.rb') diff --git a/activerecord/test/connections/native_mysql/connection.rb b/activerecord/test/connections/native_mysql/connection.rb index dea337567b..b665a6b449 100644 --- a/activerecord/test/connections/native_mysql/connection.rb +++ b/activerecord/test/connections/native_mysql/connection.rb @@ -10,6 +10,7 @@ db2 = 'activerecord_unittest2' ActiveRecord::Base.establish_connection( :adapter => "mysql", :username => "rails", + :encoding => "utf8", :database => db1 ) -- cgit v1.2.3