From 77f8ffc8cdd06b60f0a09904181bbb43daafa787 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 2 Apr 2024 12:46:20 -0400 Subject: [PATCH] Fix BOM encoding bug with geo files --- opendm/geo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opendm/geo.py b/opendm/geo.py index 3e826f84..7baa8c91 100644 --- a/opendm/geo.py +++ b/opendm/geo.py @@ -12,6 +12,9 @@ class GeoFile: with open(self.geo_path, 'r') as f: contents = f.read().strip() + + # Strip eventual BOM characters + contents = contents.replace('\ufeff', '') lines = list(map(str.strip, contents.split('\n'))) if lines: