I am using Emoji-picker for the text area. I created a column collation utf8mb4_unicode_ci, but it saves as ?????????
.
Or is there any better emoji for the text area that can save in table?
I am using Emoji-picker for the text area. I created a column collation utf8mb4_unicode_ci, but it saves as ?????????
.
Or is there any better emoji for the text area that can save in table?
I think you have pretty much found the answer by now. Changing the data-type of the column to blob was definitely on the path to finding the answer but I thought I would just like to elaborate on how to display the emojis that have been stored (well at least from php perspective).
So assuming you have all the necessary files in your current project from emojipicker, if you wanted to display the emoji in a
tag, all you need to do is to add this property <p data-emojiable= true ></p>
So here is my php example. <p data-emojiable= true>'.$row['pointText'].'</p>
. pointText is a blob datatyped column from my database table where stores emoji code.I hope this makes sense. Remember to have all the neccessary files
Have a good day
Yeah, BLOB
will work. But to do it in TEXT
,
More discussion under "Question Marks" in Trouble with utf8 characters; what I see is not what I stored