small fix of the skript wegen Deutscher Umlaute

This commit is contained in:
2025-12-22 11:24:52 +01:00
parent 56e3358e97
commit a9015ade15
+2 -1
View File
@@ -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