From d3baa43471ff4131f71d7b2caa506b9fc4ec03b7 Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Tue, 25 Mar 2025 13:14:36 +0100 Subject: [PATCH] Make sure regionchooser also works with accents on Windows --- download_LoD2_from_LGL_BW.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_LoD2_from_LGL_BW.py b/download_LoD2_from_LGL_BW.py index 6ce70f2..002cc19 100644 --- a/download_LoD2_from_LGL_BW.py +++ b/download_LoD2_from_LGL_BW.py @@ -163,7 +163,7 @@ def extract_region(output_dir: Path, location_name: str, wkt_str: str, simstadt_ with open(wkt_path, 'w') as f: f.write(local_wkt) - with open(params_path, 'w') as f: + with open(params_path, 'w', encoding='utf-8') as f: f.write("--input\n") f.write(','.join(f"{gml.as_posix()}" for gml in gml_inputs)) f.write("\n") -- GitLab