From 5b9ccb31d5df89f11728c91aaf9f705606caa454 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Fri, 19 Jun 2020 20:07:21 +0200 Subject: [PATCH] format=j1: output in utf8 --- lib/view/line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view/line.py b/lib/view/line.py index e1e5f05..358aacf 100644 --- a/lib/view/line.py +++ b/lib/view/line.py @@ -314,7 +314,7 @@ def render_line(line, data, query): return re.sub(template_regexp, render_symbol, line) def render_json(data): - output = json.dumps(data, indent=4, sort_keys=True) + output = json.dumps(data, indent=4, sort_keys=True, ensure_ascii=False) output = "\n".join( re.sub('"[^"]*worldweatheronline[^"]*"', '""', line) if "worldweatheronline" in line else line