[php-src] Issue #8281: mb_convert_encoding "\" (backslash) and "~" (tilde) convert failed to Shift_JIS

From: Date: Tue, 05 Apr 2022 19:56:25 +0000
Subject: [php-src] Issue #8281: mb_convert_encoding "\" (backslash) and "~" (tilde) convert failed to Shift_JIS
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240680@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8281 Comment Author: zonuexe @alexdowad Thank you for your response. > Do you think these changed mappings should be rolled back at least temporarily, so there is > more time to work on documentation, etc? No. It is not desirable for minor versions to change the behavior. The behavior in PHP 8.1 surprises some Japanese people, but it can be dealt with if it is clearly stated in the specification. > Do you think there is any value in providing both 'strict' and... uh... 'not > strict' SJIS conversion modes which could be selected via an .INI setting or the like? Or would > that just be adding complexity with little real benefit to PHP users? (Of course, if we did add a config setting, 99% of users would probably never read the documentation, and would never know about it or use it.) This is a difficult decision, but I think introducing strict mode with ini or other parameters will increase uncertainty and make it difficult to predict and convert results. Another option is to add another encoding name like "SJIS-strict", but it seems a bit obscure. Overall, I think it is realistic to document the current implementation.

« previous php.bugs (#240680) next »