ID:               43294
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tallyce at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: Windows or Linux
 PHP Version:      5.2.5
 New Comment:

Seems to work fine for me:

[EMAIL PROTECTED] ~]$ php t.php
Test &dagger;<br />Test[

Please try on command line.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to