From 9a80c0aea24e5de44f1c81cc980f0c4d7e9f1d6d Mon Sep 17 00:00:00 2001 From: Vedant Date: Thu, 4 Jun 2026 09:43:18 +0530 Subject: [PATCH] Fix exiftool JSON decoding to use UTF-8 --- packages/markitdown/src/markitdown/converters/_exiftool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markitdown/src/markitdown/converters/_exiftool.py b/packages/markitdown/src/markitdown/converters/_exiftool.py index f605024fd..ca652d091 100644 --- a/packages/markitdown/src/markitdown/converters/_exiftool.py +++ b/packages/markitdown/src/markitdown/converters/_exiftool.py @@ -46,7 +46,7 @@ def exiftool_metadata( ).stdout return json.loads( - output.decode(locale.getpreferredencoding(False)), + output.decode("utf-8"), )[0] finally: file_stream.seek(cur_pos)