src/Html/HtmlBuilder.php
public function setCharset($charset = null)
    {
        if (! is_null($charset)) {
            $this->charset = $charset;
        } elseif (defined('THEMOSIS_CHARSET')) {
            $this->charset = THEMOSIS_CHARSET;
        } elseif (function_exists('get_bloginfo')) {
            $this->charset = get_bloginfo('charset');
        }

        return $this;
    }
public function setCharset($charset = null)
    {
        if (! is_null($charset)) {
            $this->charset = $charset;
        } elseif (defined('THEMOSIS_CHARSET')) {
            $this->charset = THEMOSIS_CHARSET;
        } elseif (function_exists('get_bloginfo')) {
            $this->charset = get_bloginfo('charset');
        }

        return $this;
    }
public function setCharset ( $ charset = null ) { if ( ! is_null ( $ charset ) ) { $ this -> charset = $ charset ; } elseif ( defined ( 'THEMOSIS_CHARSET' ) ) { $ this -> charset = THEMOSIS_CHARSET ; } elseif ( function_exists ( 'get_bloginfo' ) ) { $ this -> charset = get_bloginfo ( 'charset' ) ; } return $ this ; }
Set the encoding charset.
Defaults to UTF8.

@param string $charset

@return \Themosis\Html\HtmlBuilder
Set the encoding charset . Defaults to UTF8 .