Sunday, May 2, 2010

[Rails] Re: database.yml: encoding: utf8 does not work

Joshua Muheim wrote:
> Hi all
>
> According to the Agile 2nd Ed book I added the line encoding: utf8 to my
> database.yml connections.
>
> But now when running rake I get plenty of errors:
>
> Character set 'utf-8' is not a compiled character set and is not
> specified in the '/usr/local/mysql/share/mysql/charsets/Index' file
>
> What's wrong here?
> I checked this Index file, but it seems to be empty...
>
> Thanks a lot
> Josh

You have to make sure your database is created to utf8 as the default
character set.
--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate