Different (special) characters showing on all pages and posts even navigation. Lately i have noticed some character showing in my WordPress website design blog. These characters are appearing when the ” , ‘ and space character is used
I have installed some plugins in the hope of speeding up the website. But to my dismay it has not worked and left all these little guys(basically everywhere).
After reading up on solutions i realised that the plugin has changed my wp-config page see below for a sample
In my wp-config there was characters at the start of every line an upside down question mark ¿
This was then translated to � on the front end or my live website.
¿// ** MySQL settings - You can get this info from your web host ** // ¿/** The name of the database for WordPress */ ¿define('DB_NAME', 'database_name_here'); ¿/** MySQL database username */ ¿define('DB_USER', 'username_here'); ¿/** MySQL database password */ ¿define('DB_PASSWORD', 'password_here');
Upon reading further i realised it was a character miscoding error.
How to fix character miscoding errors.
Fixing the Character Encoding Mismatch Problem in WordPress
Step 1) Open the ‘wp-config.php’ file in a text editor such as textwrangler or BBEdit even notepad (the wp-config.php file can be found on the directory where you installed WordPress).
Step 2) Find the following two lines and comment them out:
define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
They should look like the following after you comment them out:
//define('DB_CHARSET', 'utf8'); //define('DB_COLLATE', '');
Step 3) Now upload the updated ‘wp-config.php’ file to your web server.