Req #69086 [Opn]: enhancement for mb_convert_encoding
Edit report at https://bugs.php.net/bug.php?id=69086&edit=1
ID: 69086
Updated by: yohgaki@php.net
Reported by: masakielastic at gmail dot com
Summary: enhancement for mb_convert_encoding
Status: Open
Type: Feature/Change Request
Package: mbstring related
PHP Version: 5.6.6
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Looks good. Assign myself as reminder.
Previous Comments:
------------------------------------------------------------------------
[2015-02-20 05:49:39] masakielastic at gmail dot com
I changed the bug type,
------------------------------------------------------------------------
[2015-02-20 04:48:22] masakielastic at gmail dot com
Description:
------------
mb_convert_encoding doesnt't properly handle the value of mb_substitute_character when the
third argument is different from the value of mb_internal_encoding.
Test script:
---------------
mb_substitute_character(0xFFFD);
var_dump(mb_convert_encoding("\x80", "Shift_JIS", "EUC-JP"));
Expected result:
----------------
string(1) "?"
Actual result:
--------------
string(0) ""
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69086&edit=1
Thread (4 messages)