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

From: Date: Wed, 29 Nov 2023 12:16:42 +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 14  Groups: php.internals 
Request: Send a blank email to internals+get-121858@lists.php.net to get a copy of this message
2023年11月29日(水) 20:42 Hans Henrik Bergan <divinity76@gmail.com>: > > i think Shift_JIS can also be automatically converted to UTF-8, does > this seem right? > > https://github.com/divinity76/php2utf8/commit/6e08c4c16312961170cce821195816a8d24e23f6 > Sorry if it's harsh, not right. Shift_JIS is very ambiguous, What will we do if SJIS-2004 or SJIS-win comes? How do we guess(detect) SJIS-2004, SJIS-win and SJIS-mac? <?php // Comparison table from https://uic.io/en/charset/compare/shiftjis2004/cp932/ var_dump("\xfc\x40"); // What is 0xFC40, 騱(SJIS-2004) or 髜(SJIS-win)? ?> In the first place, We **should not** change PHP script character encoding. In addition to this, We have to think about various things. This is not just a Japanese problem. -- --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------

« previous php.internals (#121858) next »