ID: 39891 Updated by: [EMAIL PROTECTED] 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('’', 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 ’. Reproduce code: --------------- print htmlentities(""); Expected result: ---------------- ’ Actual result: -------------- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39891&edit=1