How to store emoji in a Rails app with a MySQL database
MySQL’s utf8 character set allows to store only a subset of Unicode characters - only those characters that consist of one to three bytes. Inserting characters that require 4 bytes (e.g. emojis) would result in corrupted data in your database. Learn how to fix it with utf8mb4 charset.
Post a comment