#39891 [Opn]: htmlentities missing entity

From: Date: Wed, 20 Dec 2006 18:35:01 +0000
Subject: #39891 [Opn]: htmlentities missing entity
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106675@lists.php.net to get a copy of this message
ID: 39891 Updated by: shire@php.net Reported By: jeff at dakusan dot com Status: Open Bug Type: Feature/Change Request Operating System: Multiple (XP & RedHat) PHP Version: 5.2.0 New Comment: Hello, if you specify the encoding type UTF-8 this should work as expected, I don't believe right single quote is part of the default iso-8859-1 specification. <?php $char = html_entity_decode('&rsquo;', ENT_COMPAT, 'UTF-8'); echo $char; echo htmlentities($char, ENT_COMPAT, 'UTF-8'); ?> Previous Comments: ------------------------------------------------------------------------ [2006-12-19 17:39:15] jeff at dakusan dot com Description: ------------ htmlentities is missing the ’ character as &rsquo;. Reproduce code: --------------- print htmlentities("’"); Expected result: ---------------- &rsquo; Actual result: -------------- ’ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39891&edit=1

« previous php.bugs (#106675) next »