note 10350 deleted from function.imap-mime-header-decode by didou
| From: | didou@php.net | Date: | Mon, 30 Aug 2004 23:20:35 +0000 |
| Subject: | note 10350 deleted from function.imap-mime-header-decode by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75693@lists.php.net to get a copy of this message | ||
Note Submitter: bandpay at hotmail dot com
----
I wrote a simple compliment to this function:
function encode_iso88591($string){
$text = '=?iso-8859-1?q?';
for( $i = 0 ; $i < strlen($string) ; $i++ ){
$val = ord($string[$i]);
$val = dechex($val);
$text .= '='.$val;
}
$text .= '?=';
return $text;
}
And it works. Of course it would be much better if only the none standard characters were encoded.
But this one doesn't need updates. And any character is encoded.