From 45d86abeb4959723860848dea5f47969dfe56c11 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 28 Dec 2021 04:21:13 +0530 Subject: [PATCH] Allow unicode characters in `info.json` Closes #2139 --- yt_dlp/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 5ce6df7ac..788bf16b7 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -305,7 +305,7 @@ def write_json_file(obj, fn): try: with tf: - json.dump(obj, tf) + json.dump(obj, tf, ensure_ascii=False) if sys.platform == 'win32': # Need to remove existing file on Windows, else os.rename raises # WindowsError or FileExistsError.