#49412 [Opn->Csd]: htmlspecialchars(): Add note that most charsets don't make any difference
| From: | torben@php.net | Date: | Wed, 30 Sep 2009 07:17:24 +0000 |
| Subject: | #49412 [Opn->Csd]: htmlspecialchars(): Add note that most charsets don't make any difference | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2841@lists.php.net to get a copy of this message | ||
ID: 49412
Updated by: torben@php.net
Reported By: thomas at landauer dot at
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: *
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-09-30 07:17:10] svn@php.net
Automatic comment from SVN on behalf of torben
Revision: http://svn.php.net/viewvc/?view=revision&revision=288982
Log: Note that several charsets are effectively equivalent as far as
htmlspecialchars() is concerned.
Addresses bug #49412.
------------------------------------------------------------------------
[2009-08-30 19:31:51] jani@php.net
There is no such OS called "All".
------------------------------------------------------------------------
[2009-08-29 22:16:20] thomas at landauer dot at
Description:
------------
From the 12 charsets listed in the htmlspecialchars() documentation,
the following 7 are equivalent:
*) ISO-8859-1
*) ISO-8859-15
*) UTF-8
*) cp866
*) cp1251
*) cp1252
*) KOI8-R
Reason: The five characters affected by htmlspecialchars() [& < > " ']
are all on the same position in these charsets. So for most people, the
charset parameter is totally irrelevant.
My suggestion: Include a note about this fact under the charset table.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49412&edit=1