Re: [SVN-MIGRATION] svn: SVNROOT/

[email protected] (Hannes Magnusson) Tue, 14 Jul 2009 08:38:59 +0200
Newsgroups php.cvs,svn.migration
Message-ID <[email protected]>
On Tue, Jul 14, 2009 at 01:40, Gwynne Raskind<[email protected]> wrote:
> - =A0 =A0if ($username =3D=3D $commit_user) {
> - =A0 =A0 =A0 =A0$from =3D imap_8bit("\"{$fullname}\" <{$username}@php.ne=
t>");
> + =A0 =A0if ($username =3D=3D=3D 'ladderalice') {
> + =A0 =A0 =A0 =A0$saw_last_ISO =3D TRUE;
> + =A0 =A0}
> + =A0 =A0if ($username =3D=3D=3D $commit_user) {
> + =A0 =A0 =A0 =A0if (!$saw_last_ISO) {
> + =A0 =A0 =A0 =A0 =A0 =A0$fullname =3D iconv("ISO-8859-1", "UTF-8//TRANSL=
IT", $fullname);
> + =A0 =A0 =A0 =A0}
> + =A0 =A0 =A0 =A0$from =3D "\"{$fullname}\" <{$username}@php.net>";
> =A0 =A0 =A0 =A0 break;
> =A0 =A0 }
> =A0}

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 =3D iconv("ISO-8859-1", "UTF-8", $fullname);
}

-Hannes