PHP Classes

wrong message decoding

Recommend this page to a friend!

      Read POP3/IMAP attachment  >  All threads  >  wrong message decoding  >  (Un) Subscribe thread alerts  
Subject:wrong message decoding
Summary:using ->type instead of ->encoding
Messages:1
Author:Marcelo Ferreira
Date:2008-07-17 21:23:43
 

  1. wrong message decoding   Reply   Report abuse  
Picture of Marcelo Ferreira Marcelo Ferreira - 2008-07-17 21:23:44
In the class, method getdata() where you see:

$data=$this->getdecodevalue($mege,$part->type);

change to:

$data=$this->getdecodevalue($mege,$part->encoding);

This solved my problems decoding form data coming from pdf forms
sent by e-mail, because they have UTF-8 data that was not being
correctly decoded