From fac9444cfde924bea1babe7bea971f18ec95ff0f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 14 Oct 2024 14:31:50 +0500 Subject: [PATCH] ifc5d - use utf-8 encoding for reading csv files #5561 Same encoding as we use in Ifc5DCsvWriter. --- src/ifc5d/ifc5d/csv2ifc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifc5d/ifc5d/csv2ifc.py b/src/ifc5d/ifc5d/csv2ifc.py index 139de17310..08646c3841 100644 --- a/src/ifc5d/ifc5d/csv2ifc.py +++ b/src/ifc5d/ifc5d/csv2ifc.py @@ -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]: