|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-09-18 14:19 UTC] fernando at consultorpc dot com
Description: ------------ Htmlentities() doens't convert euro symbol correctly even when i set charset to ISO-8859-15. Reproduce code: --------------- <?php $html = htmlentities( 'Euro ?' , ENT_COMPAT , 'ISO-8859-15' ); var_dump( $html ); Expected result: ---------------- "Euro €" Actual result: -------------- "Euro â?¬" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 23:00:01 2025 UTC |
That's incorrect as well since you're on UTF-8, this works: # php -r 'var_dump(htmlentities("?", ENT_COMPAT, "UTF-8"));'