Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?

From: Date: Wed, 29 Nov 2023 11:42:13 +0000
Subject: Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-121857@lists.php.net to get a copy of this message
i think Shift_JIS can also be automatically converted to UTF-8, does this seem right? https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce821195816a8d24e23f6 On Wed, 29 Nov 2023 at 01:21, youkidearitai <youkidearitai@gmail.com> wrote: > > > 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 >

« previous php.internals (#121857) next »