ID: 39075
Updated by: [EMAIL PROTECTED]
Reported By: fasaxc at f2s dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Not known
PHP Version: 5.1.6
New Comment:
var_dump("£");
=>
string(2) "£"
Notice the "2". This is Unicode character.
Previous Comments:
------------------------------------------------------------------------
[2006-10-07 09:27:23] fasaxc at f2s dot com
Description:
------------
Calling htmlentities on '£' generates two entities rather than just
£ as expected.
Reproduce code:
---------------
<?php echo "£=>".htmlentities('£'); ?>
Expected result:
----------------
Output should be "£=>£"
Actual result:
--------------
"£=>£", where did the 'Â' come from?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39075&edit=1