PHP Classes

about DecodedHeaders

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  about DecodedHeaders  >  (Un) Subscribe thread alerts  
Subject:about DecodedHeaders
Summary:about DecodedHeaders
Messages:2
Author:Christophe Charron
Date:2007-08-08 08:36:01
Update:2007-08-16 22:26:14
 

  1. about DecodedHeaders   Reply   Report abuse  
Picture of Christophe Charron Christophe Charron - 2007-08-08 08:36:02
Hi,
is there any known problem with DecodedHeaders ?
a dump shows :
["DecodedHeaders"]=>
array(1) {
["subject:"]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(2) {
["Value"]=>
string(51) "Fwd: Reponse � votre ticket T45841 - php_mime_magic"
["Encoding"]=>
string(10) "ISO-8859-1"
}
}
}

(notice the undecoded char between "Reponse" and "votre")
and a
iconv_mime_decode($decoded[0]["Headers"]["subject:"],0, "UTF-8")
shows the good sentence "Fwd: Reponse votre ticket T45841 - php_mime_magic"

Best regards
Christophe Charron

  2. Re: about DecodedHeaders   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-08-16 22:26:14 - In reply to message 1 from Christophe Charron
&#NNNN; entities are for HTML . The class only decodes the characters as they come in the message. It does not encode the characters for displaying in Web pages.

I suspect that you have entered those characters in a form of a page with encoding that does not support the encoded character and the browser encoded the character as HTML entity before sending to the server.