concrete/src/Database/Connection/Connection.php
public function getSupportedCollations()
    {
        if ($this->supportedCollations === null) {
            $supportedCollations = [];
            $rs = $this->executeQuery('SHOW COLLATION');
            while (($row = $rs->fetch(PDO::FETCH_ASSOC)) !== false) {
                if (!isset($row['Collation']) || !isset($row['Charset'])) {
                    throw new Exception(t('Unrecognized result of the "%s" database query.', 'SHOW COLLATION'));
                }
                $supportedCollations[strtolower($row['Collation'])] = strtolower($row['Charset']);
            }
            $this->supportedCollations = $supportedCollations;
        }

        return $this->supportedCollations;
    }
public function getSupportedCollations()
    {
        if ($this->supportedCollations === null) {
            $supportedCollations = [];
            $rs = $this->executeQuery('SHOW COLLATION');
            while (($row = $rs->fetch(PDO::FETCH_ASSOC)) !== false) {
                if (!isset($row['Collation']) || !isset($row['Charset'])) {
                    throw new Exception(t('Unrecognized result of the "%s" database query.', 'SHOW COLLATION'));
                }
                $supportedCollations[strtolower($row['Collation'])] = strtolower($row['Charset']);
            }
            $this->supportedCollations = $supportedCollations;
        }

        return $this->supportedCollations;
    }
public function getSupportedCollations ( ) { if ( $ this -> supportedCollations === null ) { $ supportedCollations = [ ] ; $ rs = $ this -> executeQuery ( 'SHOW COLLATION' ) ; while ( ( $ row = $ rs -> fetch ( PDO :: FETCH_ASSOC ) ) !== false ) { if ( ! isset ( $ row [ 'Collation' ] ) || ! isset ( $ row [ 'Charset' ] ) ) { throw new Exception ( t ( 'Unrecognized result of the "%s" database query.' , 'SHOW COLLATION' ) ) ; } $ supportedCollations [ strtolower ( $ row [ 'Collation' ] ) ] = strtolower ( $ row [ 'Charset' ] ) ; } $ this -> supportedCollations = $ supportedCollations ; } return $ this -> supportedCollations ; }
Get the supported collations and the associated character sets.

@throws \Exception throws an exception in case of errors

@return array keys: collation (always lower case); array values: associated character set (always lower case)
Get the supported collations and the associated character sets .