From a9015ade1590d86f49bde4988be663868a977158 Mon Sep 17 00:00:00 2001 From: mistangl Date: Mon, 22 Dec 2025 11:24:52 +0100 Subject: [PATCH] small fix of the skript wegen Deutscher Umlaute --- Doku/reduce_filesize/filter_zip_no_stl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doku/reduce_filesize/filter_zip_no_stl.py b/Doku/reduce_filesize/filter_zip_no_stl.py index 8d8d2bc..0350807 100644 --- a/Doku/reduce_filesize/filter_zip_no_stl.py +++ b/Doku/reduce_filesize/filter_zip_no_stl.py @@ -36,7 +36,8 @@ def filter_zip_no_stl(source_zip_path: str, replace: bool = False) -> str: copied_count = 0 skipped_count = 0 - with zipfile.ZipFile(source_path, 'r') as src_zip: + # Öffne ZIP mit metadata_encoding für korrekte Behandlung von Umlauten + with zipfile.ZipFile(source_path, 'r', metadata_encoding='utf-8') as src_zip: with zipfile.ZipFile(temp_path, 'w', zipfile.ZIP_DEFLATED) as dst_zip: for info in src_zip.infolist(): # Verzeichnisse überspringen