ID: 37477 Updated by: [EMAIL PROTECTED] Reported By: d dot gourgues at neuf dot fr -Status: Open +Status: Feedback Bug Type: Strings related Operating System: Debian PHP Version: 5.1.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-05-17 15:31:21] d dot gourgues at neuf dot fr Description: ------------ Hi, I've some expression in database in UTF8. When i try to use the htmlentities functions ex : htmlentities("zoo...", ENT_QUOTES, "UTF-8"); the script returns sometimes nothing. PS : I've tested on a PHP 5.1.2-1.dotdeb.2 (and i can't upgrade at work)... i will try at home with a PHP 5.1.4 version Reproduce code: --------------- // works always $str = " "; echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8"); // works sometimes $str = " "; echo htmlentities(html_entity_decode ("ζωολογικός".$str."κήπος/πάρκο", ENT_QUOTES, "UTF-8"), ENT_QUOTES, "UTF-8"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37477&edit=1