Fix BOM encoding bug with geo files

pull/1752/head
Piero Toffanin 2024-04-02 12:46:20 -04:00
rodzic 4d7cf32a8c
commit 77f8ffc8cd
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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: