Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-13 Thread Diego Dillenburg Bueno
> > "I guess"? Why not put some debugging/logging statements in your > code so you can say "I know"? Just a suggestion :-) Yeah, sorry for all the 'guessing', but I'm still on the start of the road around here :P Indeed gotta improve my debugging skills, thanks for the suggestion. ### what's th

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-07 Thread Jeff Burly
Hi Diego, There's definitely an encoding mismatch going on, and my guess would also be that it has to do with your db (and likely your mysql server settings as well). (Note that the data in your .../states.json looks good to me, in terms of being valid utf8. The problem is likely how that da

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-06 Thread Hassan Schroeder
On Tue, Jan 6, 2015 at 4:36 AM, Diego Dillenburg Bueno 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

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2015-01-06 Thread Diego Dillenburg Bueno
Hello, sorry for the really late reply, had some internet troubles where I was. I have researched about the collation, but I see that my database is ok, as when I input records manually it saves without any problems special characters, what I'm thinking that is happening is that the data I'm popu

Re: [Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2014-12-30 Thread Hassan Schroeder
On Tue, Dec 30, 2014 at 3:50 AM, Diego Dillenburg Bueno wrote: > > And also I'm using a mysql database, with the mysql gem, and I have seen some > records like: > 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

[Rails] incompatible character encodings: UTF-8 and ASCII-8BIT

2014-12-30 Thread Diego Dillenburg Bueno
Hello you all, hope you're all having some nice holidays! :p Here is the deal with me: incompatible character encodings: UTF-8 and ASCII-8BIT I used a seed (https://github.com/celsodantas/br_populate) to populate my DB with cities and states of my country, so I can fill a select box for registerin