Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Render / FormattableMarkup.php
index 1b91b9d93a8370c5d6d8e8879a7888109933bfd6..2bad2ec8c511842c0b6a9bc9484ed3340b181c02 100644 (file)
@@ -3,7 +3,6 @@
 namespace Drupal\Component\Render;
 
 use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Unicode;
 use Drupal\Component\Utility\UrlHelper;
 
 /**
@@ -107,7 +106,7 @@ class FormattableMarkup implements MarkupInterface, \Countable {
    *   The length of the string.
    */
   public function count() {
-    return Unicode::strlen($this->string);
+    return mb_strlen($this->string);
   }
 
   /**