public function setCharset($charset) { parent::setCharset($charset); \Smarty::$_CHARSET = $this->charset; }