#44617 [Asn->Csd]: mb_substitute_character('entity') convert mistake
| From: | jani@php.net | Date: | Thu, 31 Jul 2008 22:54:51 +0000 |
| Subject: | #44617 [Asn->Csd]: mb_substitute_character('entity') convert mistake | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127458@lists.php.net to get a copy of this message | ||
ID: 44617
Updated by: jani@php.net
Reported By: dq2 at 55mail dot cc
-Status: Assigned
+Status: Closed
Bug Type: mbstring related
Operating System: winxp
PHP Version: 5.2.6RC3
Assigned To: moriyoshi
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:
------------------------------------------------------------------------
[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