Markus Bertheau's patch for non-ASCII input data and non-UTF8 web server
authorsoranzo <soranzo>
Fri, 21 Jan 2005 18:05:02 +0000 (18:05 +0000)
committersoranzo <soranzo>
Fri, 21 Jan 2005 18:05:02 +0000 (18:05 +0000)
classes/Misc.php

index 3703671e537fbb8a55f70e1eb91589eae17ed5ba..459495e379410dce7e2a7a4287b2ee74da5da123 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.96 2004/12/06 03:03:00 chriskl Exp $
+        * $Id: Misc.php,v 1.97 2005/01/21 18:05:02 soranzo Exp $
         */
         
        class Misc {
                        global $appName, $lang, $_no_output, $conf;
 
                        if (!isset($_no_output)) {
+                               header("Content-Type: text/html; charset=" . $lang['appcharset']);
                                // Send XHTML headers, or regular HTML headers
                                if (isset($conf['use_xhtml']) && $conf['use_xhtml']) {
                                        echo "<?xml version=\"1.0\" encoding=\"", htmlspecialchars($lang['appcharset']), "\"?>\n";