[30365] trunk/www/includes/common.inc

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 25 14:08:56 PDT 2007


Revision: 30365
          http://trac.macosforge.org/projects/macports/changeset/30365
Author:   jmpp at macports.org
Date:     2007-10-25 14:08:56 -0700 (Thu, 25 Oct 2007)

Log Message:
-----------

Include xml header. Please advice if it's preferable to leave it out, as I hear it might break rendering on some ancient browsers
(doesn't on Safari and Firefox, don't know about "modern" -- as in, recent-- IE, but... do we really care about that inherently
broken browser?).

Modified Paths:
--------------
    trunk/www/includes/common.inc

Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc	2007-10-25 21:08:34 UTC (rev 30364)
+++ trunk/www/includes/common.inc	2007-10-25 21:08:56 UTC (rev 30365)
@@ -43,6 +43,7 @@
 # Page header
 function print_header($title, $encoding) {
     global $MPWEB;
+    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071025/f4e62de4/attachment.html


More information about the macports-changes mailing list