note 95215 added to function.mb-decode-mimeheader
| From: | DmitriSnytkine at osu1 dot php dot net | Date: | Fri, 18 Dec 2009 21:16:04 +0000 |
| Subject: | note 95215 added to function.mb-decode-mimeheader | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164123@lists.php.net to get a copy of this message | ||
This function leaves the underscores in the string.
For example, the mime header looks like this:
$text = "=?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= <keld@example.com>";
Then I decode this string like this:
mb_internal_encoding("UTF-8");
$ret2 = mb_decode_mimeheader($text);
The result is decoded string which looks OK except that the underscores between the first, middle
and last names are still there.
Keld_Jørn_Simonsen
imap_utf8($text) does not show underscores, which is the correct way, except that on my Windows PC
the imap_utf8() converts result to upper case, which is a known bug.
----
Server IP: 64.71.164.2
Probable Submitter: 75.97.204.207
----
Manual Page -- http://www.php.net/manual/en/function.mb-decode-mimeheader.php
Edit -- https://master.php.net/note/edit/95215
Del: integrated -- https://master.php.net/note/delete/95215/integrated
Del: useless -- https://master.php.net/note/delete/95215/useless
Del: bad code -- https://master.php.net/note/delete/95215/bad+code
Del: spam -- https://master.php.net/note/delete/95215/spam
Del: non-english -- https://master.php.net/note/delete/95215/non-english
Del: in docs -- https://master.php.net/note/delete/95215/in+docs
Del: other reasons-- https://master.php.net/note/delete/95215
Reject -- https://master.php.net/note/reject/95215
Search -- https://master.php.net/manage/user-notes.php