Some functions for wordpress to correct wrong encoding while migrating a website.
Go to file
2024-05-05 19:51:28 +01:00
decode-batch-attachments.php Initial commit 2024-05-05 19:51:28 +01:00
decode-batch-posts.php Initial commit 2024-05-05 19:51:28 +01:00
decode-check.php Initial commit 2024-05-05 19:51:28 +01:00
decode-fields.php Initial commit 2024-05-05 19:51:28 +01:00
decode-init.php Initial commit 2024-05-05 19:51:28 +01:00
decode-remove.php Initial commit 2024-05-05 19:51:28 +01:00
README.md Initial commit 2024-05-05 19:51:28 +01:00

Some functions for wordpress to correct wrong encoding while migrating a website.

Require ACF field plugins Very manual process

Used method to clean encoding of all the database after migration

  • copy the database to the news server
  • in PhpMyAdmin : Operation -> Interclassement : select utf8mb4_unicode_520_ci, Edit for all tables and all columns of all tables
  • upload the 3 decode-*.php plugins into the mu-plugin folder
  • go to admin panel and add to the url ?decode-init, refresh
  • adjust decode-batch-posts.php with correct option : dry = true to start, with...
  • then go to url yourwpsite.com/?decode-post, and refresh to pass all files
  • then repeat for the attachment !