I started working for a client on an existing wordpress site that is encoded using 'latin1'
wp-config.php
/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'latin1' );
/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
And db is encoded utf8mb4_unicode_ci
All the Hebrew texts in db are stored like קצת עלי×, but the website is displaying them correctly.
I want to switch to utf8mb4_unicode_ci on both db and wp-config and that the correct strings in the db will transform to the actual Hebrew texts. Nothing I tried works, how can i do that?
Bonus question - I already made a lot of changes in my localhost using xammp and Duplicator, and when I tried migrating to the server, the site frontend was also in קצת עלי×. tried to change it to
define('DB_CHARSET', 'utf8mb4');
// Set the database collation.
define('DB_COLLATE', 'utf8mb4_unicode_ci');
And it displayed a different kind of gibberish שנ×â€??_Ã. Is there also a way to change it to encode in utf8mb4_unicode_ci using Duplicator and keep all the changes that i made so far?