note 103926 added to function.htmlentities

From: Date: Wed, 11 May 2011 15:17:14 +0000
Subject: note 103926 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-179609@lists.php.net to get a copy of this message
@robin : This also happened with pages which did not contain a pound. I do have not searched for the faulty character. Following gave out an empty string: <?php $content = htmlentities($content, ENT_NOQUOTES, 'utf-8', false); ?> And this worked: <?php $content = htmlentities($content, ENT_NOQUOTES, 'ISO8859-1', false); ?> I assume that the pound was not correctly utf8 encoded. Please submit it as PHP bug, as this function should output any warning or notice! ---- Server IP: 69.147.83.197 Probable Submitter: 87.165.176.223 ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- https://master.php.net/note/edit/103926 Del: integrated -- https://master.php.net/note/delete/103926/integrated Del: useless -- https://master.php.net/note/delete/103926/useless Del: bad code -- https://master.php.net/note/delete/103926/bad+code Del: spam -- https://master.php.net/note/delete/103926/spam Del: non-english -- https://master.php.net/note/delete/103926/non-english Del: in docs -- https://master.php.net/note/delete/103926/in+docs Del: other reasons-- https://master.php.net/note/delete/103926 Reject -- https://master.php.net/note/reject/103926 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179609) next »