From a19dfb9b2622657fc7838992bdd7b722faff5f81 Mon Sep 17 00:00:00 2001 From: Raffael Comi Date: Thu, 23 Mar 2017 17:13:50 +0100 Subject: [PATCH] BUGFIX: require ext-mbstring & use mb_convert_econding instead of utf8_encode --- Classes/Specifications/Iptc/Iim.php | 2 +- composer.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Specifications/Iptc/Iim.php b/Classes/Specifications/Iptc/Iim.php index 348af6c..f915f1f 100644 --- a/Classes/Specifications/Iptc/Iim.php +++ b/Classes/Specifications/Iptc/Iim.php @@ -1254,7 +1254,7 @@ public function __construct(array $properties) if (!array_key_exists(self::CODED_CHARACTER_SET, $properties)) { array_walk_recursive($properties, function (&$element) { if (is_string($element) && mb_detect_encoding($element, 'UTF-8', true) === false) { - $element = utf8_encode($element); + $element = mb_convert_encoding($element, 'UTF-8', 'ISO-8859-1'); } }); } diff --git a/composer.json b/composer.json index 28166b2..833bc4e 100644 --- a/composer.json +++ b/composer.json @@ -5,6 +5,8 @@ "license": "MIT", "require": { "ext-exif": "*", + "ext-mbstring": "*", + "neos/flow": "^4.0", "neos/media": "^3.0", "neos/metadata": "^2.0",