I've got an app which deals with a lot of data in other languages (webpage titles and meta descriptions). I recently switched from MySQL to Percona and have found all the errors which MySQL seemed to have silently errored on.
The only one I haven't managed to fix is
ActiveRecord::StatementInvalid: Mysql2::Error: Incorrect string value:
I've looked at the current questions and answers but they all assume a known encoding to convert to UTF8, I don't know the encoding.
What I'd like to do is get rails to convert it to UTF8 (I've tried force_encoding but that didn't work) or I'd like to check if it's UTF8 and if not get rid of it.