Before my app was on Heroku and used mysql gem.
When I migrate that data into my own mysql database, and switch to mysql2 gem, my uncode character is viewed in their raw utf8 form.
In the other hand, if I update unicode data into database using mysql2 gem, then switch back to mysql gem, I get back question mark if I query for unicode character.
From my observation, mysql gem produces identical output compare to mysql client utility (on my Ubuntu) while mysql2 does not.
Is there a way to tell mysql2 gem to read data and encode using the same way mysql client does? (and thus in the same way mysql gem does)
My solution is to dump the data into a .sql file, use a unicode converter to convert that .sql file to proper encoding and then dump it back to the server.