note 84713 added to function.imap-utf8
| From: | kosso at somedomain dot com | Date: | Sat, 26 Jul 2008 15:19:59 +0000 |
| Subject: | note 84713 added to function.imap-utf8 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142787@lists.php.net to get a copy of this message | ||
You might find that imap_utf8 returns a string in uppercase.
A workaround for this I have found that worked is using this instead:
function imap_utf($string) {
return iconv_mime_decode($string,0,"UTF-8");
}
$subject = "=?utf-8?B?dGVzdA==?=";
echo utf8_decode(imap_utf($subject));
returns : test
----
Server IP: 87.124.64.96
Probable Submitter: 90.193.26.207
----
Manual Page -- http://www.php.net/manual/en/function.imap-utf8.php
Edit -- https://master.php.net/note/edit/84713
Del: integrated -- https://master.php.net/note/delete/84713/integrated
Del: useless -- https://master.php.net/note/delete/84713/useless
Del: bad code -- https://master.php.net/note/delete/84713/bad+code
Del: spam -- https://master.php.net/note/delete/84713/spam
Del: non-english -- https://master.php.net/note/delete/84713/non-english
Del: in docs -- https://master.php.net/note/delete/84713/in+docs
Del: other reasons-- https://master.php.net/note/delete/84713
Reject -- https://master.php.net/note/reject/84713
Search -- https://master.php.net/manage/user-notes.php