From f8eaa75b8eb29e6ecad2c393171c74873b56d407 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 30 May 2023 20:55:17 -0700 Subject: [PATCH] exif: fix set with unicode names Signed-off-by: Varun Patil --- lib/Exif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Exif.php b/lib/Exif.php index d4b33128..dcbcf046 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -267,7 +267,7 @@ class Exif public static function setExif(string $path, array $data) { $data['SourceFile'] = $path; - $raw = json_encode([$data]); + $raw = json_encode([$data], JSON_UNESCAPED_UNICODE); $cmd = array_merge(self::getExiftool(), ['-json=-', $path]); $proc = proc_open($cmd, [ 0 => ['pipe', 'r'],