Hi campbelson,
This by far not the best-case solution, but in order to use accented characters with your current font, you may need to use their HTML Entity equivalents. See: http://www.utexas.edu/learn/html/spchar.html
I also found a thread that might help you find a solution: http://wordpress.org/support/topic/accent-in-the-title?replies=12
Hi Drew Jaynes,
Thanks for your answer!
I could use HTML equivalents but that would mean changing all titles bearing special characters. And since the issue is only showing on the home page, where I have added code to display post titles, I should maybe get that added code revisited first. After, I should be considering your thread link which mentions theme-related issues.
Would there be anything wrong with that code?
<?php if (have_posts()) : ?>
<?php $posts = get_posts('orderby=rand&numberposts=12&cat=4'); foreach($posts as $post) { ?>
<?php } ?>
<?php $options = get_option('responsive_theme_options'); ?>
<?php while (have_posts()) : the_post(); ?>
<h1 class="post-title">
<a href="<?php the_permalink(); ?>"><?php if (strlen($post>post_title)> 24) {
echo substr(the_title($before = '', $after = '', FALSE), 0, 24) . '...';}
else {
the_title();
} ?>
</a>
</h1>
<?php endwhile; ?>
<?php endif; ?>
$post>post_title
should be:
$post->post_title
Other than that, I’m not sure you need a get_posts()
call inside the loop, though that may be another issue altogether and probably isn’t related to the character encoding on your site. Perhaps somebody else has more experience working with foreign character sets.