WordPress character encoding issues on some pages but not on others

I recently migrated a WordPress site and all is well except the following.

On the front page, there are no character encoding issues:

building a family—and a life—that’s full of love

However, on single pages, there are encoding issues:

building a family—and a life—that’s full of love

I’ve checked every column in the database and all are set to utf8mb4 and utf8mb4_unicode_ci. I’ve also tried various combinations of settings in wp-config.php:

define('DB_CHARSET', 'utf8mb4');

I’ve tried utf8 and latin1. I’ve also tried omitting this line altogether. Oddly enough, switching to latin1 actually reverses the problem, resolving the issue on the single page but creating different encoding issues on the front page:

building a family�and a life�that’s full of love

I’ve also checked to make sure each page is being served with .

I’m having a hard time understanding why this encoding issue could be template dependent. Any ideas what could be going on?

Read more here: WordPress character encoding issues on some pages but not on others

Leave a Reply

Your email address will not be published. Required fields are marked *