You are here

private static function Utils::remove_utf8_bom in Drupal driver for SQL Server and SQL Azure 8

1 call to Utils::remove_utf8_bom()
Utils::DeployCustomFunctions in drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php
Deploy custom functions for Drupal Compatiblity.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php, line 181

Class

Utils

Namespace

Drupal\Driver\Database\sqlsrv

Code

private static function remove_utf8_bom($text) {
  $bom = pack('H*', 'EFBBBF');
  $text = preg_replace("/^{$bom}/", '', $text);
  return $text;
}