summaryrefslogtreecommitdiff
path: root/manager/library/plugins/plugin.charsetheader.php
blob: b5c335721ac6c3ddc5d2c28a445b656be562a423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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');
		}
	}
}