|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-17 15:54 UTC] luis dot pessoa67 at ibest dot com dot br
[2013-04-17 15:59 UTC] luis dot pessoa67 at ibest dot com dot br
-Summary: Encoder Error: accented chars returns empty
+Summary: Encode Error: accented chars returns empty string
[2013-04-17 15:59 UTC] luis dot pessoa67 at ibest dot com dot br
[2013-04-17 16:54 UTC] rasmus@php.net
[2013-04-17 16:54 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2013-04-17 17:06 UTC] luis dot pessoa67 at ibest dot com dot br
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ 1) First script php -r "print(htmlentities('ú', ENT_COMPAT, 'ISO-8859-1'));" results: ú expected: ú [OK] 2) Second script php -r "print(htmlentities('ú'));" results: expected: ú [Error] 3) According documentation quote_style: ENT_COMPAT (default) charset: ISO-8859-1 (default) --- From manual page: http://www.php.net/function.htmlentities#refsect1-function.htmlentities-returnvalues --- Test script: --------------- php -r "print(htmlentities('ú'));" Expected result: ---------------- ú Actual result: -------------- string with lenght=0