We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit cc776478 authored by Sarven Capadisli's avatar Sarven Capadisli

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

This reverts commit 353f58c2.

Even though outputting UTF-8 by default at all times is a good thing,
it shouldn't be forced in startHTML().
parent c5be2962
......@@ -106,7 +106,7 @@ class HTMLOutputter extends XMLOutputter
}
}
header('Content-Type: '.$type.'; charset=UTF-8');
header('Content-Type: '.$type);
$this->extraHeaders();
if (preg_match("/.*\/.*xml/", $type)) {
......
......@@ -1165,7 +1165,7 @@ function common_negotiate_type($cprefs, $sprefs)
}
if ('text/html' === $besttype) {
return "text/html";
return "text/html; charset=utf-8";
}
return $besttype;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment