From b8cb8d44029db0269219999dd63145be76ab5861 Mon Sep 17 00:00:00 2001 From: Stephen Date: Sat, 12 Oct 2024 17:13:06 -0500 Subject: [PATCH] fixing the json.dump breaking unicode characters --- scripts/keycap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/keycap.py b/scripts/keycap.py index 410c0b0..f32f5be 100755 --- a/scripts/keycap.py +++ b/scripts/keycap.py @@ -233,7 +233,7 @@ def quote(self, legends): elif legend == '"': out += r'"\""' else: - out += json.dumps(legend) + "," + out += json.dumps(legend, ensure_ascii=False) + "," out = out.rstrip(',') # Get rid of trailing comma return out + "]"