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
Namespace
Drupal\Driver\Database\sqlsrvCode
private static function remove_utf8_bom($text) {
$bom = pack('H*', 'EFBBBF');
$text = preg_replace("/^{$bom}/", '', $text);
return $text;
}