From fadb0248e74edf331faf055816d2374e0a1e15ae Mon Sep 17 00:00:00 2001 From: Peter Frivalszky Date: Tue, 16 Feb 2016 19:10:37 +0100 Subject: [PATCH] Support for Unicode Exiftool output added Noticed that in some rare cases php could not decode the JSON output from exiftool. Fixed it. --- lib/PHPExif/Adapter/Exiftool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PHPExif/Adapter/Exiftool.php b/lib/PHPExif/Adapter/Exiftool.php index 44bf999..2319dee 100644 --- a/lib/PHPExif/Adapter/Exiftool.php +++ b/lib/PHPExif/Adapter/Exiftool.php @@ -110,7 +110,7 @@ public function getExifFromFile($file) ) ); - $data = json_decode($result, true); + $data = json_decode(utf8_encode($result), true); // map the data: $mapper = $this->getMapper();