Posts: 83
Threads: 10
Joined: Aug 2009
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.)
Posts: 1,848
Threads: 86
Joined: Aug 2009
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?
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 104
Threads: 8
Joined: Aug 2009
I think you would use utf8 encode.
<?
header('Content-Type: text/xml; charset=utf-8');
echo utf8_encode('annoncé');
?>
------
I can't design for shit but I can code the shit out of your design
Posts: 1,848
Threads: 86
Joined: Aug 2009
This encoding issue has been fixed in the next release. Thanks for pointing it out badcat!
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 104
Threads: 8
Joined: Aug 2009
Just out of curiosity Chris, what was the problem?
------
I can't design for shit but I can code the shit out of your design
Posts: 1,848
Threads: 86
Joined: Aug 2009
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
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!