note 89484 added to function.html-entity-decode

From: Date: Tue, 10 Mar 2009 13:25:08 +0000
Subject: note 89484 added to function.html-entity-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-151683@lists.php.net to get a copy of this message
Oops, in my last comment, I posted the wrong function, the correct work around to the bug should use utf8_encode(): <?php $string = '&nbsp;'; $utf8_encode = utf8_encode(html_entity_decode($string)); ?> http://us3.php.net/manual/en/function.utf8-encode.php Which, "Encodes an ISO-8859-1 string to UTF-8" Sorry for the confusion. ---- Server IP: 64.71.164.2 Probable Submitter: 206.248.243.26 ---- Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php Edit -- https://master.php.net/note/edit/89484 Del: integrated -- https://master.php.net/note/delete/89484/integrated Del: useless -- https://master.php.net/note/delete/89484/useless Del: bad code -- https://master.php.net/note/delete/89484/bad+code Del: spam -- https://master.php.net/note/delete/89484/spam Del: non-english -- https://master.php.net/note/delete/89484/non-english Del: in docs -- https://master.php.net/note/delete/89484/in+docs Del: other reasons-- https://master.php.net/note/delete/89484 Reject -- https://master.php.net/note/reject/89484 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151683) next »