public function setCharset($charset)
    {
        if ('UTF8' === $charset = strtoupper($charset)) {
            $charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
        }
        $this->charset = $charset;

        foreach ($this->helpers as $helper) {
            $helper->setCharset($this->charset);
        }
    }
public function setCharset($charset)
    {
        if ('UTF8' === $charset = strtoupper($charset)) {
            $charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
        }
        $this->charset = $charset;

        foreach ($this->helpers as $helper) {
            $helper->setCharset($this->charset);
        }
    }
public function setCharset ( $ charset ) { if ( 'UTF8' === $ charset = strtoupper ( $ charset ) ) { $ charset = 'UTF-8' ; // iconv on Windows requires "UTF-8" instead of "UTF8" } $ this -> charset = $ charset ; foreach ( $ this -> helpers as $ helper ) { $ helper -> setCharset ( $ this -> charset ) ; } }
Sets the charset to use.

@param string $charset The charset
Sets the charset to use .