0

My customer has a WordPress site and last week we have migrated it to a cPanel server after that the site showing special characters like ! and ? in the website. Can somebody let me know how to remove this?

Server: Centos 6

cPanel: WHM 56.0

PHP : 5.6.23

MySQL : 5.6

enter image description here

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
Techiescorner
  • 791
  • 2
  • 12
  • 25

2 Answers2

0

It's UTF8 Encoding problem, sometimes it happens when you migrate wordpress site from one host to another, you should select correct character set while exporting database backup.

Open and edit your WordPress wp-config.php file. Then find the following two lines and if it is not like that then you should change them as shown below.

define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ');

If this doesn't work try googling "special character problem wordpress"

Sachin G.
  • 528
  • 4
  • 9
0

PHP 5.6 changes the default value of default_charset to UTF-8. Change that value to ISO-8859-1 in your php.ini file and restart apache. See if that fix the issue.

Or convert the encoding of php textfiles to utf8 and don't change defaults.

Arif
  • 565
  • 5
  • 19