From 1e4449dccf3223b7afa7f0bd8a6f82eed1ea37d9 Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:51:14 +0100 Subject: [PATCH] fix(encoding): utf8 encoding support Signed-off-by: paprykdev <58005447+paprykdev@users.noreply.github.com> --- app/scripts/monet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/monet.py b/app/scripts/monet.py index 2fdd0f7..94b1dbe 100644 --- a/app/scripts/monet.py +++ b/app/scripts/monet.py @@ -110,8 +110,8 @@ class MonetScraper: os.mkdir("dist") except FileExistsError: pass - open("dist/data.json", - "w").write(json.dumps([d for d in self.data], indent=4)) + open("dist/data.json", "w", encoding="utf8").write( + json.dumps([d for d in self.data], indent=4, ensure_ascii=False)) async def get_provenance(self): provenances = None