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",