CI_User_agent::_set_charsets PHP Метод

_set_charsets() защищенный Метод

Set the accepted character sets
protected _set_charsets ( ) : void
Результат void
    protected function _set_charsets()
    {
        if (count($this->charsets) === 0 && !empty($_SERVER['HTTP_ACCEPT_CHARSET'])) {
            $this->charsets = explode(',', preg_replace('/(;\\s?q=.+)|\\s/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_CHARSET']))));
        }
        if (count($this->charsets) === 0) {
            $this->charsets = array('Undefined');
        }
    }