Req #69086 [Opn]: enhancement for mb_convert_encoding

From: Date: Fri, 20 Feb 2015 05:49:40 +0000
Subject: Req #69086 [Opn]: enhancement for mb_convert_encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190833@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 User updated by: masakielastic at gmail dot com 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 Block user comment: N Private report: N New Comment: I changed the bug type, Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#190833) next »