Emit charset and content type to webserver
authorJoey Schulze <joey@infodrom.org>
Thu, 28 Jun 2018 09:06:15 +0000 (11:06 +0200)
committerJoey Schulze <joey@infodrom.org>
Thu, 28 Jun 2018 09:06:15 +0000 (11:06 +0200)
lib/layout.inc

index 4e9639b..f8657f8 100644 (file)
@@ -25,7 +25,7 @@ function pageheader()
   global $cfg;
   global $zlist;
 
-  $ret .= '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
+  $ret .= '<!DOCTYPE html">';
   $ret .= '<html lang="de">';
   $ret .= '<head>';
   if (isset($zlist['newspaper']))
@@ -34,7 +34,8 @@ function pageheader()
     $ret .= sprintf('<title>Zeitungsliste: Tag %s</title>', $zlist['tag']);
   else
     $ret .= '<title>Zeitungsliste</title>';
-  $ret .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
+  header('Content-Type: text/html; charset=UTF-8');
+  $ret .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
   $ret .= '<meta name="Author" content="joey@infodrom.org (Joey Schulze)">';
   $ret .= '<meta name="Language" content="de">';