From 0b3ef4998e1f9d337f29df12c7cca1abdee32331 Mon Sep 17 00:00:00 2001 From: Sync_Pundit Date: Sun, 23 Apr 2023 17:13:42 +0200 Subject: [PATCH] remove escape characters --- tabletojson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabletojson.py b/tabletojson.py index bdd4ca4..5fd9d62 100644 --- a/tabletojson.py +++ b/tabletojson.py @@ -28,7 +28,7 @@ def html_to_json(content, indent=None): items.append(index.text.strip()) if items: data.append(items) - return json.dumps(data, indent=indent) + return json.dumps(data, indent=indent, ensure_ascii=False) if __name__ == "__main__": content = "
ID Vendor Product
1 Intel Processor
2 AMD GPU
3 Gigabyte Mainboard
"