How to change HTTP headers

From: Date: Thu, 22 Sep 2005 08:53:37 +0000
Subject: How to change HTTP headers
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13053@lists.php.net to get a copy of this message
Hi. I want to change HTTP headers to insert PHP command: header("Content-type: text/html; charset=utf-8"); I created this PHP function: ----------- function smartyHeader() { header("Content-type: text/html; charset=utf-8"); }//getZone ------------ Registered it (on my 'config.php'): -------- $template->register_function("phpHeader", "smartyHeader"); ---------- And used it (at the very first line of my 'index.tpl'): ------- {phpHeader} ------ But when analyzing my HTTP headers, I get: -------- * Content-Type = text/html; charset=ISO-8859-1 -------- What am I doing wrong? Thank you very much.

« previous php.smarty.general (#13053) next »