I have a very strange behavior on a WordPress Website.
If define the Charset in wp-config.php like:
define('DB_CHARSET', 'utf8');
The frontend of the website is almost fine, but:
- Images with umlauts in URL are not found
- In The backend WooCommerce addresses shows "Straße" instead of "Straße", "Müller" instead of "Müller" and so on
- Yoast Descriptions and titles have the same problem which is on some other places too.
If I do not define a charset in the wp-config.php like:
//define('DB_CHARSET', 'utf8');
...the backend and the images are fine, but there are these diamonds with question marks on frontend all over the place. For example: "F�r den fr�hlichen S�nger J�rg M�ller"
This all happened since an update try of WordPress and plugins today and restoring a backup from yesterday or earlier does not solve it.
The plain text, which is meant to be displayed in the frontend, has the regular ä,ö,ü,... in the database tables, as well as the Yoast titles and descriptions in their tables.
The address information and Image URLs are stored with "ä, ö, ü,..."
So if I define charset, something is wrong, if I don't do it, something is wrong too. I do not know how to solve this from here.
Any suggestions?
Hoster: Cloudways - PHP: 7.4 - DB: Maria DB 10.2
Which Theme and which WordPress version does not matter...