Hi
I have a script that reads emails from a pop3 server. I'm having problemsdecoding some stuff that i've read. For example:
Read from server:
Subject: =?iso-8859-2?B?YnJ66mN6eXN
6Y3p5a2lld
2ljemVrX7G
25vE=?=
code for parsing the above:
mb_decode_mimeheader(trim(
substr($na
glowki[$li
nia], strpos($naglowki[$linia], ':') + 1)));
result:
brz?czyszczykiewiczek_????
and it shuld be:
brzczyszczykiewiczek_[D
(note: it doesn't display correctly here)
also:
document uses:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" />
and, because i'm using windows (CP1250) i need to use something like this to display texts correctly:
iconv("CP1250", "ISO-8859-2", $text);
It would be nice to get some help with the above decoding, and maybe some tips for decoding e-mails bodies (haven't got to that yet in my script, but it would be nice to know what i can expect in the matter of char encoding)
Thank you in advance for any help
Start Free Trial