I am trying to insert an emoji () into mysql database.
When I insert it from php code it inserts as ????.
And when I try to copy and paste it into phpmyadmin the following error occurs:
Warning: #1366 Incorrect string value: '\xF0\x9F\x98\x8D' for column 'content' at row 1
The column 'content' is long text.
Then I tried it with utf8mb4_unicode_ci
instead of utf8_unicode_ci
collation but I still get the same result from php although it inserts correctly in phpmyadmin.
I have followed many tutorials online and made all the database changes suggested but I can't find an answer to my problem.
Can anyone help?
Thank you