RLCS
RLCS

Reputation: 3

Wordpress site displays replacement character � in posts

Launched a new WP site about 1 month ago, and there were no issues at the time. Now there are instances of this character (�) inserting itself into posts. Looks to be happening where an open tag begins. Some sort of character encoding problem? Only happening in posts, not pages, so possibly a database issue?

Upvotes: 0

Views: 804

Answers (2)

Edunikki
Edunikki

Reputation: 237

You haven't copied and pasted the content from another editor like Word, have you?

It's encoding causing the problem, where Wordpress doesn't recognise the character you're using. If you hand code it rather than using the visual editor you shouldn't see it, and the most likely cause is inheriting the character from a piece of software that you have previously edited in.

Upvotes: 1

Omor Faruk
Omor Faruk

Reputation: 36

Step 1) Open the wp-config.php file in a text editor such as 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 webhost (overwriting the old one).

Upvotes: 1

Related Questions