My database, tables, fields use utf8mb4. I can store emoji characters in some fields. Now I am trying to execute a query, for example:
SELECT * FROM user WHERE name = '😀😇😈😉'
Surprisingly, the result is records with field names other than "😀😃😇😉"
It seems that mysql matches emoji strings in length but not content.
Any idea to fix this problem? Thank you very much.
source share