I'm using SwiftMailer and trying to add an attachment with special chars and spaces in it's filename. How can I add such a file, f.e. "Informationen für alle Mitglieder.pdf"?
I use this command:
$message->attach("resources/assets/docs/Informationen für alle Mitglieder.pdf");
...but I'm getting always an file not found error. When I replace all special chars, it works fine?
Is there any "decoding function" to make it work? For white spaces, I can replace them easily with "\x20" and it works. But what's about the other chars like "äöü"?