0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +00:00

Allow unicode characters in info.json

Closes #2139
This commit is contained in:
pukkandan 2021-12-28 04:21:13 +05:30
parent f02d24d8d2
commit 45d86abeb4
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View 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.