aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-12-28 04:21:13 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-12-28 04:21:13 +0530
commit45d86abeb4959723860848dea5f47969dfe56c11 (patch)
tree93f7bca6628c8eca2f3dad5d7effb91e3a9491a8 /yt_dlp/utils.py
parentf02d24d8d2c79a8f053874b373e33e011fd11f13 (diff)
downloadhypervideo-pre-45d86abeb4959723860848dea5f47969dfe56c11.tar.lz
hypervideo-pre-45d86abeb4959723860848dea5f47969dfe56c11.tar.xz
hypervideo-pre-45d86abeb4959723860848dea5f47969dfe56c11.zip
Allow unicode characters in `info.json`
Closes #2139
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py2
1 files changed, 1 insertions, 1 deletions
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.