public function isConnectionUTF8()
    {
        $charsetInfo = $this->fetchAll('SHOW VARIABLES LIKE ?', array('character_set_connection'));

        if (empty($charsetInfo)) {
            return false;
        }

        $charset = $charsetInfo[0]['Value'];
        return $charset === 'utf8';
    }
public function isConnectionUTF8()
    {
        $charsetInfo = $this->fetchAll('SHOW VARIABLES LIKE ?', array('character_set_connection'));

        if (empty($charsetInfo)) {
            return false;
        }

        $charset = $charsetInfo[0]['Value'];
        return $charset === 'utf8';
    }
public function isConnectionUTF8 ( ) { $ charsetInfo = $ this -> fetchAll ( 'SHOW VARIABLES LIKE ?' , array ( 'character_set_connection' ) ) ; if ( empty ( $ charsetInfo ) ) { return false ; } $ charset = $ charsetInfo [ 0 ] [ 'Value' ] ; return $ charset === 'utf8' ; }
Is the connection character set equal to utf8?

@return bool
Is the connection character set equal to utf8?