I had an issue with one of my own sites recently, where it wouldn't let me save Emojis in the post content. The site itself is nothing out of the ordinary and is just using the Classic Editor. This particular site was also running PHP 8.1.
For an issue such as this, I checked that the wp-config
file had define('DB_CHARSET', 'utf8mb4');
. The database collation was also utf8mb4
. As a simple test, I also tried editing some page content directly in the wp_posts
table using phpMyAdmin. I was able to save the content with an emoji 🎉, but when I refreshed the content in the Post Editor it simply showed as a ?
. Likewise, when trying to view the content in the browser ☹️. The exact same site was working fine in my local development environment, and I even tried disabling plugins to see if they were the cause, but the issue still remained. 🤬