|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-07 09:27 UTC] 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?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 15:00:01 2025 UTC |
var_dump("?"); => string(2) "?" Notice the "2". This is Unicode character.