|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-11 02:33 UTC] cataphract@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: cataphract
[2010-10-11 02:33 UTC] cataphract@php.net
[2010-10-11 02:33 UTC] cataphract@php.net
-Package: *General Issues
+Package: Strings related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 21:00:02 2025 UTC |
Description: ------------ html_entity_decode should decode "LATIN CAPITAL LETTER Z WITH CARON" Ž Ž Ž to (int)142, hex(8E) for Windows-1252 html_entity_decode should decode "LATIN SMALL LETTER Z WITH CARON" ž ž ž to (int)158, hex(9E) for Windows-1252 htmlentities should encode the respective characters to Ž and ž (ž and Ž is not well supported by most browsers) Reproduce code: --------------- var_dump(html_entity_decode("Ž", ENT_QUOTES, "Windows-1252")); var_dump(html_entity_decode("Ž", ENT_QUOTES, "Windows-1252")); var_dump(html_entity_decode("Ž", ENT_QUOTES, "Windows-1252")); var_dump(html_entity_decode("ž", ENT_QUOTES, "Windows-1252")); var_dump(html_entity_decode("ž", ENT_QUOTES, "Windows-1252")); var_dump(html_entity_decode("ž", ENT_QUOTES, "Windows-1252")); var_dump(htmlentities(chr(142), ENT_QUOTES, "Windows-1252", true)); var_dump(htmlentities(chr(158), ENT_QUOTES, "Windows-1252", true)); Expected result: ---------------- string(1) "?" string(1) "?" string(1) "?" string(1) "?" string(1) "?" string(1) "?" string(6) "Ž" string(6) "ž" Actual result: -------------- string(8) "Ž" string(6) "Ž" string(7) "Ž" string(8) "ž" string(6) "ž" string(7) "ž" string(1) "?" string(1) "?"