From bb121512c301e180b57606cea3659958da77e24c Mon Sep 17 00:00:00 2001 From: Koa Wells Date: Tue, 18 Apr 2023 17:55:27 -0400 Subject: [PATCH] Add utf-8 encoding when reading cities15000 file --- hub/helpers/geometry_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/helpers/geometry_helper.py b/hub/helpers/geometry_helper.py index f5b2617d..6806a84b 100644 --- a/hub/helpers/geometry_helper.py +++ b/hub/helpers/geometry_helper.py @@ -305,7 +305,7 @@ class GeometryHelper: distance = math.inf country = 'Unknown' city = 'Unknown' - with open(_data_path, 'r') as f: + with open(_data_path, 'r', encoding='utf-8') as f: for line_number, line in enumerate(f): fields = line.split('\t') file_city_name = fields[2]