public function setCharset($charset)
    {
        $this->charset = $charset;
        if (!$this->headerCharset) {
            $this->headerCharset = $charset;
        }

        return $this;
    }
public function setCharset($charset)
    {
        $this->charset = $charset;
        if (!$this->headerCharset) {
            $this->headerCharset = $charset;
        }

        return $this;
    }
public function setCharset ( $ charset ) { $ this -> charset = $ charset ; if ( ! $ this -> headerCharset ) { $ this -> headerCharset = $ charset ; } return $ this ; }
Charset setter.

@param string|null $charset Character set.
@return $this
Charset setter .