Quoting Felipe Pieretti Umpierre <[email protected]>:
> Everaldo Gomes wrote in post #1044692:
> > Hi!
> >
> > Try to follow Jefrey tip. Because he said that mysql adapter returns
> > ASCII-8bit.
> >
> > You must use
> >
> > adapter: mysql2
> >
> > Regards,
> > Everaldo
> >
> > On Tue, Feb 7, 2012 at 9:10 PM, Felipe Pieretti Umpierre <
> 
> I tried, but was the same error.
> 

In the Rails console, pick a model, I use Item here, try this, and show us the
result.

>> i = Item.first
>> i.title      # any string field will do
>> i.title.encoding

The desired value is:

 => #<Encoding:UTF-8> 

A couple of other things, I assume you are using Ruby 1.9, correct?  And did
you restart your server after changing database.yml?

Jeffrey

-- 
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 [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-talk?hl=en.

Reply via email to