From fe096eac5ca115d469ebd6a576ac0cfbfec6acfd Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 27 Jun 2012 02:16:17 +0200 Subject: [PATCH] Only send out Unicode headers if the current document is HTML, as indicated by a switch --- base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base.php b/base.php index 9822bfb..1bc9758 100644 --- a/base.php +++ b/base.php @@ -32,7 +32,10 @@ $locale->Load($cphp_locale_name); setlocale(LC_ALL, $locale->locale); -header('Content-Type:text/html; charset=UTF-8'); +if(empty($not_html)) +{ + header("Content-Type:text/html; charset=UTF-8"); +} require("class.base.php"); require("class.databaserecord.php");