mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
ifc5d - use utf-8 encoding for reading csv files #5561
Same encoding as we use in Ifc5DCsvWriter.
This commit is contained in:
@@ -45,7 +45,7 @@ class Csv2Ifc:
|
||||
self.parents = {}
|
||||
self.headers = {}
|
||||
locale.setlocale(locale.LC_ALL, "") # set the system locale
|
||||
with open(self.csv, "r", encoding="ISO-8859-1") as csv_file:
|
||||
with open(self.csv, "r", encoding="utf-8") as csv_file:
|
||||
reader = csv.reader(csv_file)
|
||||
for row in reader:
|
||||
if not row[0]:
|
||||
|
||||
Reference in New Issue
Block a user