Mailinglisten-Archive |
* Mailanbecker wrote:
> =?iso-8859-1?Q?hallo...das_ist_nur_ein_ganz_normale_Mail!_h=F6h=F6_!?=
Stammt IIRC von Hartmut Holzgraefe <hartmut_(at)_six.de>,
der diese Funktion damals auf der Liste als quick hack
bezeichnete.
<?php
function rfc2047_decode($text)
{
$text = str_replace("_"," ",$text);
return
quoted_printable_decode(
ereg_replace("=\?iso-8859-[1234567890]*\?Q\?([^\?]*)\?=","\\1"
,$text));
}
print rfc2047_decode("=?iso-8859-1?Q?hallo...das_ist_nur_ein_ganz_normale_Mail!_h=F6h=F6_!?=");
?>
--
PHP Schulungen und | International PHP Conference
Schulungsmaterial: | 05. - 07.11.2001
| Astron Hotel, Frankfurt
http://thinkphp.de/ | http://www.php-kongress.de/
php::bar PHP Wiki - Listenarchive