Closed k0fi closed 5 years ago
It turned out that the snippet above just works fine to accept emojis. My problem was in mysql database. When I changed the column's collation to utf8mb4_bin, the problem is gone. Sorry, please close the issue.
Sounds good to me :)
And yes, database collation is a gotcha, as-is passing the output of this through another language and not ensuring that UTF is the charset, etc.
Using sanitization rule below converts emojies like 😀 to
?
:I'm wondering how can I allow emojis to be saved without lowering the sanitization bar too much?