From 5ef23a366d84dfbdc0ffa6f991ee4112d7c791d4 Mon Sep 17 00:00:00 2001 From: Christophe Combelles Date: Fri, 2 Aug 2024 16:38:00 +0200 Subject: [PATCH] don't remove \x7f but convert to newline --- bw2io/extractors/simapro_csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bw2io/extractors/simapro_csv.py b/bw2io/extractors/simapro_csv.py index 482f815..fb00f18 100644 --- a/bw2io/extractors/simapro_csv.py +++ b/bw2io/extractors/simapro_csv.py @@ -92,7 +92,7 @@ def to_number(obj): # \x7f if ascii delete - where does it come from? strip_whitespace_and_delete = lambda obj: ( - obj.replace("\x7f", "").strip() if isinstance(obj, str) else obj + obj.replace("\x7f", "\n").strip() if isinstance(obj, str) else obj ) uppercase_expression = (