From: Sarven Capadisli Date: Thu, 1 Oct 2009 10:07:09 +0000 (+0000) Subject: Revert "Outputting UTF-8 charset in document header irrespective of mimetype." X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc776478e2ea8fc861fd3b4e8e878f7d6020c34e;p=quix0rs-gnu-social.git Revert "Outputting UTF-8 charset in document header irrespective of mimetype." This reverts commit 353f58c23149159306131b0819de713da6b69464. Even though outputting UTF-8 by default at all times is a good thing, it shouldn't be forced in startHTML(). --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 64be745beb..c70f965376 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -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)) { diff --git a/lib/util.php b/lib/util.php index 44a3772200..d249b154fc 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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; }