|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-30 19:32 UTC] jani@php.net
[2009-11-13 22:38 UTC] vrana@php.net
[2009-11-13 22:38 UTC] svn@php.net
[2010-10-11 02:19 UTC] cataphract@php.net
-Status: Closed
+Status: Re-Opened
-Assigned To:
+Assigned To: cataphract
[2010-10-11 02:21 UTC] cataphract@php.net
-Type: Documentation Problem
+Type: Bug
-Package: Documentation problem
+Package: Strings related
[2010-10-12 04:51 UTC] cataphract@php.net
[2010-10-12 04:51 UTC] cataphract@php.net
-Status: Re-Opened
+Status: Closed
[2010-10-12 04:51 UTC] cataphract@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
Description: ------------ get_html_translation_table(HTML_ENTITIES) lists the tranlation table used by htmlentities *when no charset parameter is given*. htmlentities($string, ENT_COMPAT, 'utf-8') encodes more characters than get_html_translation_table(HTML_ENTITIES) contains!! So I suggest either: *) Add a charset parameter to get_html_translation_table() - corresponding to htmlentities() Or *) Correct the documentation. E.g.: get_html_translation_table() will return the translation table that is used internally for htmlspecialchars() and htmlentities() when no charset parameter is given. Note: If htmlentities() is called with a charset parameter, it converts more characters than get_html_translation_table() shows. Currently, there is no way to display the translation table which is used in that case. Reproduce code: --------------- htmlentities('∫', ENT_COMPAT, 'utf-8'); // returns ∫ print_r(get_html_translation_table(HTML_ENTITIES)); // ∫ is not listed