Bug #67652 [NEW]: htmlentities() return empty string when accented chars are inside the string

From: Date: Fri, 18 Jul 2014 15:57:12 +0000
Subject: Bug #67652 [NEW]: htmlentities() return empty string when accented chars are inside the string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186730@lists.php.net to get a copy of this message
From: andrelisci at gmail dot com Operating system: Linux gentoo PHP version: 5.5.14 Package: *General Issues Bug Type: Bug Bug description:htmlentities() return empty string when accented chars are inside the string Description: ------------ when accented characters are found inside a string, htmlentities return empty string this doesn't happen on php old versions Test script: --------------- <?php print "-->".htmlentities("test ì")."<--\n"; print "-->".htmlentities("test à")."<--\n"; print "-->".htmlentities("test ò")."<--\n"; print "-->".htmlentities("test ù")."<--\n"; print "-->".htmlentities("test è")."<--\n"; print "-->".htmlentities("test é")."<--\n"; ?> Expected result: ---------------- -->test &igrave;<-- -->test &agrave;<-- -->test &ograve;<-- -->test &ugrave;<-- -->test &egrave;<-- -->test &eacute;<-- Actual result: -------------- --><-- --><-- --><-- --><-- --><-- --><-- -- Edit bug report at https://bugs.php.net/bug.php?id=67652&edit=1 --

« previous php.bugs (#186730) next »