format=j1: output in utf8

pull/475/head
Igor Chubin 5 years ago
parent ac62bb7387
commit 5b9ccb31d5

@ -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

Loading…
Cancel
Save