GetSimple Support Forum

Full Version: get_header() generated meta desc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The get_header() template tag's generated meta description does not account for foreign chars such as umlauts (ö) used in the page content and creates validation errors.

(Feature Request: Allow user to specify a meta description - if user does not, only then generate one based on page content.)
I think this might be related to the feature here: http://get-simple.info/forum/viewtopic.php?id=10

If we start adding "custom fields" within the edit field, then this would fall under that.

For the time-being, anyone know how I would code those characters for the description? Would it just be as simple as using htmlspecialchars on the output string?
I think you would use utf8 encode.

<?
header('Content-Type: text/xml; charset=utf-8');
echo utf8_encode('annoncé');
?>
This encoding issue has been fixed in the next release. Thanks for pointing it out badcat!
Just out of curiosity Chris, what was the problem?
I specified a character encoding parameter in the htmlspecialcharacters() function (and some others). The only thing is that it may still be an issue for certain characters: http://get-simple.info/forum/viewtopic.php?id=65