Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttributesConverter.php

function AttributesConverter::isUtf8

1 call to AttributesConverter::isUtf8()
AttributesConverter::convertAnyValue in vendor/open-telemetry/exporter-otlp/AttributesConverter.php

File

vendor/open-telemetry/exporter-otlp/AttributesConverter.php, line 59

Class

AttributesConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

private static function isUtf8(string $value) : bool {
    return \extension_loaded('mbstring') ? \mb_check_encoding($value, 'UTF-8') : (bool) \preg_match('//u', $value);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal