protected function charset()
    {
        ini_set('default_charset', $charset = strtoupper(config_item('charset')));

        defined('MB_ENABLED') || define('MB_ENABLED', extension_loaded('mbstring'));

        $encoding = 'mbstring.internal_encoding';

        ! is_php('5.6') && ! ini_get($encoding) && ini_set($encoding, $charset);

        $this->iconv();
    }