source/Core/Database/Adapter/Doctrine/Database.php
protected function addConnectionCharset(array &$existingParameters, $connectionCharset)
    {
        $sanitizedCharset = trim(strtolower((string) $connectionCharset));

        if (!empty($sanitizedCharset)) {
            $existingParameters['charset'] = $sanitizedCharset;
        }
    }
protected function addConnectionCharset(array &$existingParameters, $connectionCharset)
    {
        $sanitizedCharset = trim(strtolower((string) $connectionCharset));

        if (!empty($sanitizedCharset)) {
            $existingParameters['charset'] = $sanitizedCharset;
        }
    }
protected function addConnectionCharset ( array & $ existingParameters , $ connectionCharset ) { $ sanitizedCharset = trim ( strtolower ( ( string ) $ connectionCharset ) ) ; if ( ! empty ( $ sanitizedCharset ) ) { $ existingParameters [ 'charset' ] = $ sanitizedCharset ; } }
Determine the charset to be used when connecting to the database.

Please be aware that different database drivers may need different options/values for setting the charset
or may not support setting charset at all.
See http://doctrine-orm.readthedocs.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connection-details
for details.

Take into account that the character set must be set either on the server level, or within the database
connection itself (depending on the driver) for it to affect PDO::quote().

@param array  $existingParameters
@param string $connectionCharset
Determine the charset to be used when connecting to the database .