[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty
From:       "Tomas Kuliavas" <tokul () users ! sourceforge ! net>
Date:       2008-01-29 5:42:43
Message-ID: 51526.78.61.224.253.1201585363.nsm () avilys ! eik ! lt
[Download RAW message or body]

> That part is completely different.  That's at the display level.
> Replacing it in the backend makes no sense to me.  Don't use
> utf8_decode.  Use iconv() so you know what the heck is going on.

:)

iconv() will stop on conversion error and return partial string or empty
string. It will require even more complex code than 5.2.5
htmlspecialchars() does. With htmlspecialchars you check for empty string
before and after the call. With iconv you check for php errors during
iconv call.


-- 
Tomas

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic