ID: 43294
Updated by: [EMAIL PROTECTED]
Reported By: tallyce at gmail dot com
Status: Feedback
Bug Type: Strings related
Operating System: Windows or Linux
PHP Version: 5.2.5
New Comment:
Correct output:
$ php t.php
Test †<br />Test
Previous Comments:
------------------------------------------------------------------------
[2007-12-10 10:01:49] [EMAIL PROTECTED]
Seems to work fine for me:
[EMAIL PROTECTED] ~]$ php t.php
Test †<br />Test[
Please try on command line.
------------------------------------------------------------------------
[2007-11-14 14:39:48] tallyce at gmail dot com
Description:
------------
A string which includes the dagger symbol that is processed with
htmlentities() with UTF-8 as the encoding results in the whole string
being discarded and appearing as blank.
This is definitely a change in PHP 5.2.5. Tested on both Windows and
Linux machines.
Reproduce code:
---------------
<?php echo htmlentities ('Test ', ENT_COMPAT, 'UTF-8') . '<br />' .
htmlentities ('Test', ENT_COMPAT, 'UTF-8'); ?>
Expected result:
----------------
Test
Test
[This is indeed the result as expected, on PHP v.5.2.4]
Actual result:
--------------
Test
[Blank line at start]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43294&edit=1