You are here

protected function Schema::isUtf8 in Drupal driver for SQL Server and SQL Azure 3.0.x

Is the database configured as UTF8 character encoding?

2 calls to Schema::isUtf8()
Schema::createDataType in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Create the data type from a field specification.
Schema::getFieldTypeMap in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Returns a mapping of Drupal schema field names to DB-native field types.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 1897

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

protected function isUtf8() {
  $collation = $this
    ->getCollation();
  return stristr($collation, '_UTF8') !== FALSE;
}