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 <youkideari...@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
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to