Bug #67652 [NEW]: htmlentities() return empty string when accented chars are inside the string
| From: | andrelisci at gmail dot com | 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 ì<--
-->test à<--
-->test ò<--
-->test ù<--
-->test è<--
-->test é<--
Actual result:
--------------
--><--
--><--
--><--
--><--
--><--
--><--
--
Edit bug report at https://bugs.php.net/bug.php?id=67652&edit=1
--