From 893eb574b2f3c048583858390e3c28b142eb17c6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 7 Jan 2009 14:30:00 +0100 Subject: [PATCH] fixed encoding when loading from cache darcs-hash:20090107133000-6e07b-512e54100b1701de86ff5bcdafeebe4556c9964b.gz --- renderer.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/renderer.php b/renderer.php index 628f3c0..fe54c19 100644 --- a/renderer.php +++ b/renderer.php @@ -41,12 +41,16 @@ class renderer_plugin_s5 extends Doku_Renderer_xhtml { * Initialize the rendering */ function document_start() { + global $ID; + // call the parent parent::document_start(); - // send the content type header - header('Content-Type: text/html; charset=utf-8'); - + // store the content type headers in metadata + $headers = array( + 'Content-Type' => 'text/html; charset=utf-8' + ); + p_set_metadata($ID,array('format' => array('s5' => $headers) )); $this->base = DOKU_BASE.'lib/plugins/s5/ui/'; $this->tpl = $this->getConf('template'); }