[Solved] Portuguese Character Explosion
Permalink
Hey all,
I've recently started adding concrete5 to a Portuguese language website. I've run into a strange problem.
The foreign characters in the header file are fine, but anywhere else and they display as diamond question marks.
My mysql tables are correct (utf8_general_ci) and my charset <meta charset="utf-8">.
http://www.contrastesesimetrias.barringtonmedia.co.uk/...
The weird bit comes from the following. My theme is sectioned like this:
Any foreign characters in the included header.php are fine. Anything anywhere else explodes.
Please help!!!
I've recently started adding concrete5 to a Portuguese language website. I've run into a strange problem.
The foreign characters in the header file are fine, but anywhere else and they display as diamond question marks.
My mysql tables are correct (utf8_general_ci) and my charset <meta charset="utf-8">.
http://www.contrastesesimetrias.barringtonmedia.co.uk/...
The weird bit comes from the following. My theme is sectioned like this:
<?php defined('C5_EXECUTE') or die("Access Denied."); $this->inc('elements/head.php'); ?> <?php $this->inc('elements/editBar.php'); ?> </head> <body> <?php $this->inc('elements/header.php'); ?> <div class="dirty" id="contentPage"> <div class="container"> </div><!--Container Closed--> </div> <?php $this->inc('elements/footer.php'); ?> <?php $this->inc('elements/foot.php'); ?>
Any foreign characters in the included header.php are fine. Anything anywhere else explodes.
Please help!!!

Check the encoding your editor saves the .php file in. Make sure you save your files in utf-8 and not in ASCII or any other format.
^^^
Legend!
Legend!
Sometimes, it's the small things one misses.
I'm glad it worked out for you.
I'm glad it worked out for you.