Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.1

Request #16658 Solution Header for AMFPHP
Submitted: 2009-09-30 01:41 UTC
From: wyssinet Assigned: richy
Status: Closed Package: Mail_IMAPv2 (version 0.2.0)
PHP Version: 5.2.5 OS: Windows Vista
Roadmaps: (Not assigned)    
Subscription  


 [2009-09-30 01:41 UTC] wyssinet (Raffael Wyss)
Description: ------------ I have found a solution, when you have a problem with amfphp and header subject (example: 'Priorität' don't correct display in flash = 'Priorita?t'. When you want more help/information, you can contact me Test script: --------------- function getHeaders(...) { // ... foreach ($headers as $key => $value) { if (!is_object($value) && !is_array($value)) { // Decode all the headers using utf8_decode(imap_utf8()) $this->header[$mid][$key] = imap_utf8($value); // RW090929 //;utf8_decode(imap_utf8($value)); } } // ... }

Comments

 [2009-09-30 14:28 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
How about a few basic test steps to reproduce the problem or an original bug report ?
 [2009-10-01 00:14 UTC] wyssinet (Raffael Wyss)
This Problem do you only have when your swf load getHeader(...) over the amfphp (gateway.php). The Solution a parameter to say only imap_utf8(..) or utf8_decode(imap_utf8(...)), but this is don't really a bug, or you find it?
 [2013-03-16 21:14 UTC] richy (Richard York)
My apologies for years of inactivity, this response for submitter and anyone interested. The UTF-8 encoding thing is in the latest version, although I'm not sure if the latest version is on PEAR. I am preparing a new release, but that release will not be put up on PEAR when it is ready. The solution presented here isn't 100% correct, as far as I can tell, though. You should first detect the encoding used in the message part and only apply utf8 decoding to the headers when utf8 is used for message encoding. The version I have posted on my site is just using utf8 decoding carte blanche as this reporter suggests, despite it being incorrect. http://www.deadmarshes.com/mail_imap/source/imap.html If you are interested, watch my site at http://www.deadmarshes.com/mail_imap for new releases. I will eventually delete the PEAR package.
 [2013-03-16 21:16 UTC] richy (Richard York)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: richy