Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_header() generated meta desc
#1
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.)
Reply
#2
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!
Reply
#3
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
Reply
#4
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!
Reply
#5
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
Reply
#6
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!
Reply




Users browsing this thread: 1 Guest(s)