diff --git a/src/Services/BankImportParser.php b/src/Services/BankImportParser.php index d7e8ade..ec4203f 100644 --- a/src/Services/BankImportParser.php +++ b/src/Services/BankImportParser.php @@ -78,6 +78,11 @@ class BankImportParser // BOM entfernen $content = preg_replace('/^\xEF\xBB\xBF/', '', $content); + // ISO-8859-1 → UTF-8 konvertieren wenn nötig + if (!mb_check_encoding($content, 'UTF-8')) { + $content = mb_convert_encoding($content, 'UTF-8', 'ISO-8859-1'); + } + // Verschiedene Zeilenenden normalisieren $content = str_replace(["\r\n", "\r"], "\n", $content); $lines = explode("\n", $content);