summaryrefslogtreecommitdiff
path: root/manager/library/plugins/plugin.charsetheader.php
diff options
context:
space:
mode:
Diffstat (limited to 'manager/library/plugins/plugin.charsetheader.php')
-rw-r--r--manager/library/plugins/plugin.charsetheader.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/manager/library/plugins/plugin.charsetheader.php b/manager/library/plugins/plugin.charsetheader.php
new file mode 100644
index 0000000..57e4f50
--- /dev/null
+++ b/manager/library/plugins/plugin.charsetheader.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * @author markus
+ * $Id: plugin.charsetheader.php 13 2009-11-24 14:52:56Z markus $
+ */
+class CharsetHeader extends Zend_Controller_Plugin_Abstract {
+ public function preDispatch(Zend_Controller_Request_Abstract $request) {
+ $response = $this->getResponse();
+ if ($response->canSendHeaders() === true) {
+ $response->setHeader('Content-Type', 'text/html; charset=utf-8');
+ }
+ }
+} \ No newline at end of file