Skip to main content

all: print output as UTF-8 rather than with HTML entities

ID
3f30c9d
date
2026-04-18 22:08:16+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
f96c4de
message
all: print output as UTF-8 rather than with HTML entities
changed files
1 file, 1 addition, 1 deletion

Changed files

yt-dlp_alexwlchan.py (8997) → yt-dlp_alexwlchan.py (9017)

diff --git a/yt-dlp_alexwlchan.py b/yt-dlp_alexwlchan.py
index 91fb2b1..27d718f 100755
--- a/yt-dlp_alexwlchan.py
+++ b/yt-dlp_alexwlchan.py
@@ -300,6 +300,6 @@ if __name__ == "__main__":
 
     video_info = download_video(url)
 
-    json_string = json.dumps(video_info, indent=2, cls=PathEncoder)
+    json_string = json.dumps(video_info, indent=2, cls=PathEncoder, ensure_ascii=False)
 
     print(json_string)