
Michael Dale - 2012-08-29 11:05:03
Hey,
I am using your great mime_parser.php and pop3 class.
When downloading emails with quoted-printable content encoding (i.e using =92) and inserting it into the mysql database the email is getting cut off.
My system is running UTF-8
The following function seems to help:
function decode_qprint($str) {
$str = quoted_printable_decode($str);
$str = iconv('ISO-8859-2', 'UTF-8', $str);
return $str;
}
But I only want it to process emails with quoted-printable.
Any ideas or pointers?
Many thanks.