Outputting UTF-8 charset in document header irrespective of mimetype.

This commit is contained in:
Sarven Capadisli 2009-09-30 10:51:59 +00:00
parent eb85f16f77
commit 353f58c231
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class HTMLOutputter extends XMLOutputter
}
}
header('Content-Type: '.$type);
header('Content-Type: '.$type.'; charset=UTF-8');
$this->extraHeaders();
if( ! substr($type,0,strlen('text/html'))=='text/html' ){

View File

@ -1148,7 +1148,7 @@ function common_negotiate_type($cprefs, $sprefs)
}
if ('text/html' === $besttype) {
return "text/html; charset=utf-8";
return "text/html";
}
return $besttype;
}