• Hello. I’am having trouble with the charset settings. I have the spanish version of wordpress.

    The problem is that the content of the blog don’t show spanish characters right, like accents etc. When i change the admin > Settings > Reading option to ISO-8859-1 the entire blog (admin included) have the charset problem, but if it is UTF-8 only the posts and widgets content have problems. My wp-config.php option is set to UTF-8 and if i change it i don’t see any difference.

    Any clues??

    Thanks a lot in advance.

Viewing 1 replies (of 1 total)
  • I think you should add this code in your theme header. If you still get the problem, try also to place it on the top section of the page or script file that causes problem:

    For example:

    <?php if (strtolower($_COOKIE['language'])!='es') { ?>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <?php } else { // spanish here... ?>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <?php } ?>

    Please adjust that code with your needs or with the translation plugin you use.

    [signature moderated Please read the Forum Rules]

Viewing 1 replies (of 1 total)
  • The topic ‘Spanish charset problem’ is closed to new replies.