Skip to content

Commit fadb024

Browse files
author
Peter Frivalszky
committed
Support for Unicode Exiftool output added
Noticed that in some rare cases php could not decode the JSON output from exiftool. Fixed it.
1 parent fd4d474 commit fadb024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PHPExif/Adapter/Exiftool.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getExifFromFile($file)
110110
)
111111
);
112112

113-
$data = json_decode($result, true);
113+
$data = json_decode(utf8_encode($result), true);
114114

115115
// map the data:
116116
$mapper = $this->getMapper();

0 commit comments

Comments
 (0)