From 84ba4a72329a40ee46bc3ebcc12dd3c2e93f6abc Mon Sep 17 00:00:00 2001 From: Kyle Seongwoo Jun Date: Thu, 4 Jun 2020 18:17:41 +0900 Subject: [PATCH] [Windows Terminal] Don't escape non-ACSII characters when saving JSON file https://github.com/LazoCoder/Pokemon-Terminal/issues/185 --- pokemonterminal/terminal/adapters/windowsterminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonterminal/terminal/adapters/windowsterminal.py b/pokemonterminal/terminal/adapters/windowsterminal.py index 35a0b8c..4784ff4 100644 --- a/pokemonterminal/terminal/adapters/windowsterminal.py +++ b/pokemonterminal/terminal/adapters/windowsterminal.py @@ -31,7 +31,7 @@ def set_background_image(path: str): # write to file # it lost orignal indent, comment, ... json_file.seek(0) - json.dump(data, json_file, indent=4) + json.dump(data, json_file, indent=4, ensure_ascii=False) json_file.truncate() def comment_remover(text: str) -> str: