|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-04 22:20 UTC] jani@php.net
[2009-02-05 08:20 UTC] polettog at gmail dot com
[2009-02-12 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
Description: ------------ html_entity_decode doesn't decode sp?cific CP1252 entities (characters in the 0x80-0x9F range) when specifying 'cp1252' charset, whereas it decodes succesfully other latin1 characters. Reproduce code: --------------- <?php var_dump(html_entity_decode('€', ENT_QUOTES, 'cp1252')); var_dump(html_entity_decode('€', ENT_QUOTES, 'cp1252')); var_dump(html_entity_decode('é', ENT_QUOTES, 'cp1252')); var_dump(html_entity_decode('é', ENT_QUOTES, 'cp1252')); var_dump(html_entity_decode('é', ENT_QUOTES, 'cp1252')); ?> Expected result: ---------------- string(1) "?" string(1) "?" string(1) "?" string(1) "?" string(1) "?" Actual result: -------------- string(8) "€" string(7) "€" string(1) "?" string(1) "?" string(1) "?"