From 90894849674f6fb68db925cac332afdb87bb188f Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 4 Jul 2024 10:27:45 -0600 Subject: [PATCH] Update csv loader to be utf-8 explicitly (for Windows users) --- src/votekit/cvr_loaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/votekit/cvr_loaders.py b/src/votekit/cvr_loaders.py index 428c320..bbdeb46 100644 --- a/src/votekit/cvr_loaders.py +++ b/src/votekit/cvr_loaders.py @@ -122,7 +122,7 @@ def convert_row(row): return [int(item) if item.isdigit() else item for item in row] data = [] - with open(fpath, "r") as f: + with open(fpath, "r", encoding="utf-8") as f: reader = csv.reader(f) for row in reader: # This just removes any empty strings that are hanging out since