Req #69086 [Opn]: enhancement for mb_convert_encoding

From: Date: Fri, 27 Feb 2015 05:06:35 +0000
Subject: Req #69086 [Opn]: enhancement for mb_convert_encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190980@lists.php.net to get a copy of this message
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)

« previous php.bugs (#190980) next »