Moving WordPress is something that we all encounter often. Whether it’s about new staging area (local or online) or a complete transfer to new server, or w/e, there are problems which we might not realize soon enough.
Let’s start with UTF encoding.
Even the migration goes super smooth and everything seems perfect, one day you might find yourself using your friend’s laptop to do something quick on your website. When you visit your website you get stunned when you see some odd characters showing up instead of your MENU links.
Yes, the UTF encoding went bad, which can happen after the database upgrade too, so be carefull.
The FIX is quite simple, you wouldn’t believe it actually works.
In first case scenario look for your ”wp-config.php” file and check if you have this inside:
If not, then just add it, but if you do then follow the scenario 2 steps:
1. Open your wp-config.php file. Find and comment-out this:
.. OR delete those two lines.
(If there is no ”2nd” line, then just do it with
It will look like this after you comment it out:
2. Make new ‘wp-config.php’ and upload/overwrite the old one.
Just make it look like this:
.. and SAVE.
Refresh your website (ctrl + f5) and clear your cache (if any). Your website shouldn’t have weird characters showing up anymore.
Just to be sure, set your file editor encoding to utf8, just like I have in Notepad++:
That’s it, for now.
.. to be Continued!