Re: [SVN-MIGRATION] svn: SVNROOT/
| From: | Hannes Magnusson | Date: | Tue, 14 Jul 2009 06:38:59 +0000 |
| Subject: | Re: [SVN-MIGRATION] svn: SVNROOT/ | ||
| References: | 1 | Groups: | php.cvs svn.migration |
| Request: | Send a blank email to svn-migration+get-459@lists.php.net to get a copy of this message | ||
On Tue, Jul 14, 2009 at 01:40, Gwynne Raskind<gwynne@php.net> wrote:
> - if ($username == $commit_user) {
> - $from = imap_8bit("\"{$fullname}\"
> <{$username}@php.net>");
> + if ($username === 'ladderalice') {
> + $saw_last_ISO = TRUE;
> + }
> + if ($username === $commit_user) {
> + if (!$saw_last_ISO) {
> + $fullname = iconv("ISO-8859-1", "UTF-8//TRANSLIT",
> $fullname);
> + }
> + $from = "\"{$fullname}\" <{$username}@php.net>";
> break;
> }
> }
Huh? That makes no sense to me.
You are probably looking for something along the lines of:
if (!mb_check_encoding($fullname, "UTF-8")) {
$fullname = iconv("ISO-8859-1", "UTF-8", $fullname);
}
-Hannes