Created
February 28, 2014 13:01
-
-
Save marcuswestin/9270645 to your computer and use it in GitHub Desktop.
Mysql charset fix for emojis in text columns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE message ( | |
body TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL | |
); | |
-- Then add to conf: `character-set-server = utf8mb4` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment