Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[PHP] E-Mail Anhang wird falsch interpretiert

Empfohlene Antworten

Hallo,

ich rufe E-Mails ab, und lese deren Anhänge ein. Leider gibt es "Übersetzungsprobleme" sobald Umlaute im Dateinamen des Anhanges vokommen.

Folgende Fehlermeldung kommt:

fopen(=?iso-8859-1?Q?K=FCchen?= =?iso-8859-1?Q?0013=2Ehtm?=) [function.fopen]: failed to open stream: Invalid argument in ...

Weiß jemand wie ich die Datei in den richtigen Namen umgewandelt bekomme???

sieht nach quoted-printable aus, versuchs mal mit quoted_printable_decode.

s'Amstel

Das sieht schon ganz gut aus...

Jetzt sind allerdings noch solche Sachen im Dateinamen enthalten:

=?iso-8859-1?Q?

Wenn ich das auch noch los werden würde...wäre es Super!!!

Habe noch was besseres gefunden:

imap_utf8()

Jetzt zeigt er den Dateinamen so wie er sein soll...Nur müssten die Umlaute umgewandelt werden, ein ü ist zum Beispiel ü

Leider geht das mit quoted_printable_decode() nicht

Problem gelöst:

utf8_decode(imap_utf8($string));

Trotzdem DANKE;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.