Advertisement

08.19.2008 at 11:21AM PDT, ID: 23660604 | Points: 500
[x]
Attachment Details

decoding some stuff from emails

Asked by szafran in PHP for Windows, PHP Scripting Language

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?YnJ66mN6eXN6Y3p5a2lld2ljemVrX7G25vE=?=

code for parsing the above:
mb_decode_mimeheader(trim(substr($naglowki[$linia], 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 helpStart Free Trial
[+][-]08.20.2008 at 01:18AM PDT, ID: 22267109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 12:30PM PDT, ID: 22273070

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 12:32PM PDT, ID: 22273086

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 01:41PM PDT, ID: 22273678

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 10:57PM PDT, ID: 22276549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 01:27AM PDT, ID: 22277198

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 01:58AM PDT, ID: 22277328

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 02:14AM PDT, ID: 22277410

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 02:42AM PDT, ID: 22277557

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 12:50PM PDT, ID: 22293506

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 04:22AM PDT, ID: 22313307

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628