#44617 [Opn->Ana]: mb_substitute_character('entity') convert mistake

From: Date: Thu, 31 Jul 2008 16:47:26 +0000
Subject: #44617 [Opn->Ana]: mb_substitute_character('entity') convert mistake
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127442@lists.php.net to get a copy of this message
 ID:               44617
 Updated by:       moriyoshi@php.net
 Reported By:      dq2 at 55mail dot cc
-Status:           Open
+Status:           Analyzed
 Bug Type:         mbstring related
 Operating System: winxp
 PHP Version:      5.2.6RC3
-Assigned To:      
+Assigned To:      moriyoshi


Previous Comments:
------------------------------------------------------------------------

[2008-04-02 16:20:58] dq2 at 55mail dot cc

oh converted :-(
> echo mb_convert_encoding('♥', 'sjis-win', 'utf-8');
this line '♥' means utf-8 heart mark. (equal &hearts)

------------------------------------------------------------------------

[2008-04-02 16:13:35] dq2 at 55mail dot cc

Description:
------------
want: ♥ or ♥
but
return ੩

Reproduce code:
---------------
mb_internal_encoding('utf-8');

mb_substitute_character('entity');
echo mb_convert_encoding('♥', 'sjis-win', 'utf-8');


Expected result:
----------------
♥

Actual result:
--------------
੩


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44617&edit=1



Thread (5 messages)

« previous php.bugs (#127442) next »