Req #42023 [Opn->Bgs]: html_entity_decode() skips some chars

From: Date: Mon, 11 Oct 2010 05:06:05 +0000
Subject: Req #42023 [Opn->Bgs]: html_entity_decode() skips some chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155075@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=42023&edit=1 ID: 42023 Updated by: cataphract@php.net Reported by: anders dot jenbo at pc dot dk Summary: html_entity_decode() skips some chars -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Linux PHP Version: 5.2.3, 4.4.7 Block user comment: N New Comment: See bug #52712. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#155075) next »