Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Can somebody please assist as to why I am getting the following special character � in my WordPress content pages.

Not sure how it got in there.

You can see this special character at this url:

PPS Victoria

and then just scroll down to "Restoration and Recovery Services" sub-section.

Any help would be great.

Thanks.

share|improve this question

2 Answers 2

My guess is that you pasted something from a Windows environment and that's the CR (carriage return, I think) character. I'd go into the editor and just remove those line breaks. That should fix the problem. Also, you might look into standardizing the content type meta tag. You've got

<meta charset="UTF-8" />

I could be wrong about this, but in XHTML (the DTD of that page), I think you need to use this structure:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

In your WordPress theme it should look like this:

<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>">
share|improve this answer
    
Thanks for your reply John. FYI, I have placed this in my header.php file. So John, after removing those line breaks manually and now having your line in my header.php file, should I still expect to get these special characters still appearing in the future? –  tonsils Oct 13 '10 at 13:45
    
@tonsils, I'm still seeing the weird characters. Make sure you clear your page cache. –  Chris_O Oct 13 '10 at 15:27

It looks like you're manually adding line breaks within paragraphs to control the shape the text. You should only need to use newlines to separate paragraphs. The best practice is to allow the dimensions of <div class="entry-content"> determine the length of each line of text.

I'm guessing that you copied the text for this page from another source and pasted it into the WordPress editor. Unfortunately, this method is prone to the types of problems you've described. The solution is to use the Paste as Plain Text or Paste from Word features provided in the WordPress editor's kitchen sink.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.