Skip to main content

Wordpress site Non-English Characters Corrupted after moving to new server

Comments

4 comments

  • ffeingol
    Can you check the MySQL character sets and the default character set on both servers?
    0
  • nbk
    Old server using MariaDB Server charset: cp1252 West European (latin1) New server using MySQL Server charset: UTF-8 Unicode (utf8mb4) Database using utf8mb4_unicode_ci which is in both old and new servers. Only one out of two faces this character encoding problem in new server.
    0
  • nbk
    I managed to fix the problem. I changed utf8mb4 to latin1 in wp-config.php. define ("DB_CHARSET", "latin1"); I have two almost identical websites. One works with utf8mb4 and the other latin1. Anyone knows why is that so? And also why my old server works with define("DB_CHARSET", "utf8mb4"); but not the new one.
    0
  • cPRex Jurassic Moderator
    I can't say exactly *why* things wouldn't work, but you're changing the MySQL version and the character set so I would expect there to be issues. I'm glad you found a good resolution, though!
    0

Please sign in to leave a comment.