note 8414 added to mail
| From: | rasmus at conecto dot dk | Date: | Tue, 12 Sep 2000 03:43:28 +0000 |
| Subject: | note 8414 added to mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4738@lists.php.net to get a copy of this message | ||
To get danish characters in the Subject: and From: fields:
use the following function:
function quote_print($str)
{
$str=str_replace("=", "=3D", $str);
$str=str_replace("æ", "=E6", $str);
$str=str_replace("ø", "=F8", $str);
$str=str_replace("å", "=E5", $str);
$str=str_replace("Æ", "=C6", $str);
$str=str_replace("Ø", "=D8", $str);
$str=str_replace("Å", "=C5", $str);
return "=?iso-8859-1?Q?".$str."?=";
}
or if you have imap installed, you can use:
imap_8bit()
http://www.php.net/manual/function.mail.php