From ccbd20dbc7cc523c50d03f10af77879dd919a735 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Jan 2020 15:27:56 +0000 Subject: [PATCH] changed default loading to uft-8 encoding --- popolo_data/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popolo_data/importer.py b/popolo_data/importer.py index 589b384..24df6e2 100644 --- a/popolo_data/importer.py +++ b/popolo_data/importer.py @@ -18,7 +18,7 @@ class Popolo(object): @classmethod def from_filename(cls, filename): - with open(filename) as f: + with open(filename, encoding="utf-8") as f: return cls(json.load(f)) @classmethod