On Tue, Jul 14, 2009 at 01:40, Gwynne Raskind<[email protected]> wrote:
> - if ($username == $commit_user) {
> - $from = imap_8bit("\"{$fullname}\" <{[email protected]>");
> + 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}\" <{[email protected]>";
> 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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php