From cf4517c1c2a449ea8637eef93b1fb214a6b74d4f Mon Sep 17 00:00:00 2001 From: Jo Date: Fri, 23 Jul 2021 01:10:38 +0200 Subject: [PATCH] - update the script that loads data to ES, to support data encoded with utf8 (#742) --- tests/load_es_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/load_es_data.py b/tests/load_es_data.py index 073f8d4..0d12cd1 100644 --- a/tests/load_es_data.py +++ b/tests/load_es_data.py @@ -92,7 +92,7 @@ def gendata(data): # create index es.indices.create(index=index_name, body=settings, request_timeout=90) -with open(sys.argv[1]) as fh: +with open(sys.argv[1], encoding='utf-8') as fh: d = json.load(fh) # call generator function to yield features into ES build API