From d1edd936e2e05fbdcc73c78b564b77a7c84e8f3d Mon Sep 17 00:00:00 2001 From: Dark Ghosty <38810205+DarkGhost7@users.noreply.github.com> Date: Fri, 2 Sep 2022 16:11:46 -0400 Subject: [PATCH] update: add encoding for non-latin characters Thanks for this @mmsardar https://github.com/yearn/yearn-meta/pull/318 --- data/meta/_config/scripts/toLocale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/meta/_config/scripts/toLocale.py b/data/meta/_config/scripts/toLocale.py index 9bf55fab6..f6b800142 100644 --- a/data/meta/_config/scripts/toLocale.py +++ b/data/meta/_config/scripts/toLocale.py @@ -65,6 +65,6 @@ else: data['localization'][locale] = {"description": data["description"]} - with open(filePath, 'w') as f: - json.dump(data, f, indent=2) + with open(filePath, 'w', encoding='utf-8') as f: + json.dump(data, f, indent=2, ensure_ascii=False) print("The localization has been updated")