#32063 [Opn->Csd]: mb_convert_encoding ignores named entity 'alpha'

From: Date: Tue, 22 Feb 2005 10:10:48 +0000
Subject: #32063 [Opn->Csd]: mb_convert_encoding ignores named entity 'alpha'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74412@lists.php.net to get a copy of this message
ID: 32063 Updated by: moriyoshi@php.net Reported By: webmaster at reddi dot de -Status: Open +Status: Closed Bug Type: mbstring related Operating System: linux PHP Version: 5.0.3 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-02-22 10:37:47] webmaster at reddi dot de Description: ------------ if to_encoding is UTF-8 and from_encoding is HTML-ENTITIES, mb_convert_encoding leaves named entity 'alpha' unconverted. This is pesky! Reproduce code: --------------- <?php $a= '&Alpha;&Beta;&alpha;&beta;' ; echo mb_convert_encoding ($a, 'utf-8', 'HTML-ENTITIES'); ?> Expected result: ---------------- ΑΒαβ Actual result: -------------- ΑΒ&alpha;β ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32063&edit=1

« previous php.bugs (#74412) next »