note 102474 added to function.html-entity-decode

From: Date: Wed, 16 Feb 2011 22:39:20 +0000
Subject: note 102474 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-177050@lists.php.net to get a copy of this message
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

« previous php.notes (#177050) next »