> Use zend.script_encoding=sjis and zend_bultibyte=true > > ❯ ~/php82/bin/php -d zend.script_encoding=sjis -d zend.multibyte=true > deprecate_zend_scriptencoding.php > array(7) { > ["biao_hex"]=> > string(6) "e8a1a8" > ["zend.multibyte"]=> > string(1) "1" > ["zend.script_encoding"]=> > string(4) "sjis" > ["zend.detect_unicode"]=> > string(1) "1" > ["mbstring.internal_encoding"]=> > string(0) "" > ["mbstring.func_overload"]=> > bool(false) > ["PHP_VERSION"]=> > string(5) "8.2.8" > } >
Strictly, include internal_encoding. ❯ ~/php82/bin/php -d zend.script_encoding=sjis -d internal_encoding=sjis -d zend.multibyte=true deprecate_zend_scriptencoding.php array(7) { ["biao_hex"]=> string(4) "955c" ["zend.multibyte"]=> string(1) "1" ["zend.script_encoding"]=> string(4) "sjis" ["zend.detect_unicode"]=> string(1) "1" ["mbstring.internal_encoding"]=> string(0) "" ["mbstring.func_overload"]=> bool(false) ["PHP_VERSION"]=> string(5) "8.2.8" } -- --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai ----------------------------- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php