Skip to content

Commit

Permalink
BUGFIX: require ext-mbstring & use mb_convert_econding instead of utf…
Browse files Browse the repository at this point in the history
…8_encode
  • Loading branch information
ComiR committed Mar 29, 2017
1 parent 783765a commit a19dfb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Specifications/Iptc/Iim.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
}
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"license": "MIT",
"require": {
"ext-exif": "*",
"ext-mbstring": "*",

"neos/flow": "^4.0",
"neos/media": "^3.0",
"neos/metadata": "^2.0",
Expand Down

0 comments on commit a19dfb9

Please sign in to comment.