helo guys..i'd like to make a program to read mail (IMAP/POP3). it was success except the program coudn't read incoming mail with strange characters such as ö, ü, ß etc.
i try to make decode_quoted_printable functions but it still doesn't work. here is the functions :
function decode_quoted_printable($srcstring) {
$srcstring = str_replace("=\r\n","",$srcstring);
for ($i=0; $i<=255; $i++) {
$result = chr($i);
$needle = "=".bin2hex($result);
str_replace($needle,$result,$srcstring);
}
return $srcstring;
}
So...anyone know what the problem is in my function above?