]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Include meta charset header in saved HTML file for long OStatus messages; without...
authorBrion Vibber <brion@pobox.com>
Mon, 29 Mar 2010 23:27:50 +0000 (16:27 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 29 Mar 2010 23:27:50 +0000 (16:27 -0700)
plugins/OStatus/classes/Ostatus_profile.php

index 34bff548dbf15d769a8133c84a05cb4055a91229..8ba2ce0c313fffe4f30d9b8a3c32160bdba1c4df 100644 (file)
@@ -1685,7 +1685,11 @@ class Ostatus_profile extends Memcached_DataObject
      */
     function saveHTMLFile($title, $rendered)
     {
-        $final = sprintf("<!DOCTYPE html>\n<html><head><title>%s</title></head>".
+        $final = sprintf("<!DOCTYPE html>\n" .
+                         '<html><head>' .
+                         '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' .
+                         '<title>%s</title>' .
+                         '</head>' .
                          '<body>%s</body></html>',
                          htmlspecialchars($title),
                          $rendered);