note 102474 added to function.html-entity-decode
[email protected] Wed, 16 Feb 2011 14:39:20 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
BE AWARE: The documentation around the default charset might be wrong.
The changelog says:
5.3.3 Default charset changed from ISO-8859-1 to UTF-8.
Despite the fact that we are running 5.3.3-7 when we do
html_entity_decode(" ", ENT_QUOTES);
we get "\xa0" the ISO-8859-1 version of a non breaking space.
When we change this to:
html_entity_decode(" ", ENT_QUOTES, 'UTF-8');
we properly get "\xc2\xa0"
Implying that 'UTF-8' is NOT the default for our installation of php.
----
Server IP: 192.41.42.26
Probable Submitter: 216.162.195.58
----
Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php
Edit -- https://master.php.net/note/edit/102474
Del: integrated -- https://master.php.net/note/delete/102474/integrated
Del: useless -- https://master.php.net/note/delete/102474/useless
Del: bad code -- https://master.php.net/note/delete/102474/bad+code
Del: spam -- https://master.php.net/note/delete/102474/spam
Del: non-english -- https://master.php.net/note/delete/102474/non-english
Del: in docs -- https://master.php.net/note/delete/102474/in+docs
Del: other reasons-- https://master.php.net/note/delete/102474
Reject -- https://master.php.net/note/reject/102474
Search -- https://master.php.net/manage/user-notes.php