Edit report at http://bugs.php.net/bug.php?id=42023&edit=1
ID: 42023 Comment by: joerg dot lottermoser at web dot de Reported by: anders dot jenbo at pc dot dk Summary: html_entity_decode() skips some chars Status: Bogus Type: Feature/Change Request Package: *General Issues Operating System: Linux PHP Version: 5.2.3, 4.4.7 Block user comment: N Private report: N New Comment: also affected: € (won't be decoded - PHP 5.3.1). Previous Comments: ------------------------------------------------------------------------ [2010-10-11 07:06:05] cataphr...@php.net See bug #52712. ------------------------------------------------------------------------ [2007-07-21 14:05:24] mattias at secweb dot se ISO-8859-1 which php5 will use by default dosen't support those characters. See http://www.w3.org/TR/REC-html40/sgml/entities.html#h-24.2 echo(html_entity_decode('”“„∞’•™…–', 0, 'UTF-8')); .. will decode the entities. ------------------------------------------------------------------------ [2007-07-18 06:27:46] anders dot jenbo at pc dot dk Description: ------------ html_entity_decode does not handle ” “ „ ∞ ’ • ™ … – Reproduce code: --------------- echo(html_entity_decode(' ”“„∞’•™…–')); Expected result: ---------------- ∞ Actual result: -------------- ”“„∞’•™…– ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=42023&edit=1