note 8414 deleted from function.mail by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 23:05:27 +0000 |
| Subject: | note 8414 deleted from function.mail by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19867@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()