]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Outputting UTF-8 charset in document header irrespective of mimetype.
authorSarven Capadisli <csarven@status.net>
Wed, 30 Sep 2009 10:51:59 +0000 (10:51 +0000)
committerSarven Capadisli <csarven@status.net>
Wed, 30 Sep 2009 10:51:59 +0000 (10:51 +0000)
lib/htmloutputter.php
lib/util.php

index 9e3a5b305e5fa89be55e25d7fc4a2c4b8c54603a..99f956545b9486914da4a67511fead66daa1ade9 100644 (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' ){
index b831859e993392d14de493f3ae349d9e61e919e2..a069ccf7b36ae5dca3e19fcb1dd092ffb5c006f3 100644 (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;
 }