]> jfr.im git - yt-dlp.git/commitdiff
Allow unicode characters in `info.json`
authorpukkandan <redacted>
Mon, 27 Dec 2021 22:51:13 +0000 (04:21 +0530)
committerpukkandan <redacted>
Mon, 27 Dec 2021 22:51:13 +0000 (04:21 +0530)
Closes #2139

yt_dlp/utils.py

index 5ce6df7ac2417c5aa73acc929b36934ed6775956..788bf16b77cdaa19509c3e9d25b3b6288e77bd68 100644 (file)
@@ -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.