eddiemachado/bones — Issue #30: Some html characters aren't displaying correctly
Author: matt-bailey
Created: 2012-01-05 17:39:10+00:00
State: open

I've come across an odd problem and I'm trying to narrow down the cause. It may or may not be something to do with Bones...

Basically I've got two test sites set up at the moment, both built on Bones. Neither of them are displaying some 'special' html characters in the_content correctly, such as pound symbols, arrows etc - all I see is a black diamond with a question mark in it.

One way round it is to switch to HTML view in the editor and enter £. If I then view the page it will show the £ symbol correctly. However, if I switch back to Design view and re-save WP changes £ to a single £ symbol which then doesn't display properly again. Of course, once I hand the site over to the clients to update they won't be working in HTML view.

I've tried adding 'remove_filter('the_content', 'convert_chars');' to functions.php, but this did not seem to have any effect at all.

I've tried changing the font in my style sheet, and even disabled all style sheets, but the £ symbol still renders as a black diamond.

Could the problem be something to do with the character set? in header.php it's set to , and in wp-config.php the database is set to 'define('DB_CHARSET', 'utf8');'.

Any suggestions, I'm pretty stumped?...