You may have noticed if you have looked at the page source of Drupal sites that they often have two content type metatags
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Homepage | Page Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> This is a remnant of a security fix to ensure that the page always had a content type. (you can read all about it here http://drupal.org/node/451304
A clean fix is to add the following to your template.php file (create one if you don't have one and add to the pre-process page if you do
function YOURTHEME_preprocess_page(&$vars, $hook) {
// Strip duplicate head charset metatag
$matches = array();
preg_match_all('/(<meta http-equiv=\"Content-Type\"[^>]*>)/', $vars['head'], $matches);
if( count($matches) >= 2){
$vars['head'] = preg_replace('/<meta http-equiv=\"Content-Type\"[^>]*>/', '', $vars['head'], 1); // strip 1 only
}
}Supplied by : davidwhthomas
It is a better solution than hacking the core.
Note also that if you add a value to the $head in your template.php page preprocess function, you will remove one of the entries in any case.
$vars['head'] = "<!-- some comment -->\n" ;