On Tue, Jan 6, 2015 at 4:36 AM, Diego Dillenburg Bueno
<diegodillenb...@gmail.com> wrote:

> I have researched about the collation, but I see that my database is ok, as
> when I input records manually

Meaningless. The MySQL command line client is not the same
as the driver "client" used by your Rails app.

I repeat:

>> You need to make sure your database (or at least the tables you're
>> using for your app) is set up with the appropriate "character set" and
>> "collation" for the language(s) you're using.

Until you *confirm* that all the encoding-related variables used by
your DB (server *and* client) are correct, you're wasting your time.

> ... what I'm thinking that is happening is that the data I'm
> populating comes from a JSON request, and it's coming encoded in ASCII-8BIT
> I guess.

"I guess"? Why not put some debugging/logging statements in your
code so you can say "I know"? Just a suggestion  :-)

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBSVASjBzMNt%2Bv%3D0ae8DSnDB6n4n7Gv9cKGX27TZPcsoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to