Outputting UTF-8 charset in document header irrespective of mimetype.
This commit is contained in:
parent
eb85f16f77
commit
353f58c231
|
@ -106,7 +106,7 @@ class HTMLOutputter extends XMLOutputter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-Type: '.$type);
|
header('Content-Type: '.$type.'; charset=UTF-8');
|
||||||
|
|
||||||
$this->extraHeaders();
|
$this->extraHeaders();
|
||||||
if( ! substr($type,0,strlen('text/html'))=='text/html' ){
|
if( ! substr($type,0,strlen('text/html'))=='text/html' ){
|
||||||
|
|
|
@ -1148,7 +1148,7 @@ function common_negotiate_type($cprefs, $sprefs)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('text/html' === $besttype) {
|
if ('text/html' === $besttype) {
|
||||||
return "text/html; charset=utf-8";
|
return "text/html";
|
||||||
}
|
}
|
||||||
return $besttype;
|
return $besttype;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user