Emojis break when pulling down to Local site (show up as '?')

Bug Summary

Emojis in post content are not displayed. Instead they show up as ? or ???

Steps to reproduce

Pull down to Local from a WP Engine environment with emojis in the post content.

Environment Info

Describe your environment.

Mac OS 14.4 Sonoma
Nginx, PHP 8.2.23, MySQL 8.0.16
Local version 9.1.0+6719

Supporting info

Local Screenshot 2024-10-15 at 10.11.40 AM

Emojis would not show up at all until I updated the PHP version from 8.1 to 8.2.23 which nearly matched the environment I was pulling from. New posts were ok, but emojis in existing post content were still broken. I tried changes to the encoding and collate declarations in wp-config.php.
What eventually succeeded as a workaround was to download a backup from WP Engine and import it manually into Local.

Ref: [Ticket #7540672]

Hi @beardsavvy

We changed the default “preferred” version of PHP in Local to 8.2.23 with the latest release (9.1.0), which it sounds like should fix this for you moving forward?

PHP 8.1 and a few older versions are still available but we always like to bump that up to match what most users are using when we can.

I tried the pull after changing the PHP version, but still no dice. Do you have any other suggestions? The only workaround I have found is importing the site manually.

If you pull a fresh copy of the site however does it work? By fresh copy I mean completely wipe the instance(s) of it within your current Local app and then pull the site to Local as if it were the first time. If you have any work you want to save you’ll want to export/save those to your desktop or cloud storage first before deleting completely.