I got an error Mysql2::Error: Incorrect string value: '\xE0\xA4\xAE\xE0\xA5\x81... in log while running a query.
I identified the reason for the error is MySql database not fully support the Unicode character. some blog suggest to migrate the database to utf8mb4.
But i want a solution with minimum change by using rails or ruby functionality. How we can use escape the unicode character before trying write in DB?