I'm experiencing serious problems with accents (é, í, ú...) & special chars (like "ñ" or "¿") replaced by strange characters in content and menus.
- The site is in spanish. I use Wordpress. Never migrated.
- The problem appears using PHP 7.1, 7.2 and 7.3. If I back to PHP 7.0 everything is perfect.
- I did many tests in staging environment with no plugins and default WP theme, but no results.
FYI these are my data:
Wp-config:
define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', '');
All the tables in PHPMyAdmin are utf8mb4_unicode_ci except Yoast tables that are in utf8_general_ci…
- character_set_client: utf8mb4
- character_set_connection: utf8mb4
- character_set_database: utf8
- character_set_filesystem: binary
- character_set_results: utf8mb4
- character_set_server: utf8
character_set_system: utf8
collation_connection: utf8mb4_unicode_ci
- collation_database: utf8_general_ci
- collation_server: utf8_general_ci
Is it a problem with 'DB-CHARSET'? (content stored in wp_posts or wp_comments shows many wrong accents) or PHP? (mbstring, maybe?) or Apache? (htaccess looks good, adding AddDefaultCharset utf-8 doesn't solve anything).
What can I do or test and how? (I'm not a developer but I can manage some basics).
Thanks in advance for your help!