note 89484 deleted from function.html-entity-decode by danbrown

From: Date: Tue, 10 Mar 2009 13:37:30 +0000
Subject: note 89484 deleted from function.html-entity-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151684@lists.php.net to get a copy of this message
Note Submitter: marion at figmentthinking dot com ---- 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.

« previous php.notes (#151684) next »