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

From: Date: Wed, 29 Nov 2023 12:32:37 +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 15  Groups: php.internals 
Request: Send a blank email to internals+get-121859@lists.php.net to get a copy of this message
2023年11月29日(水) 21:16 youkidearitai <youkidearitai@gmail.com>: > > 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? > > Q±ÂOŠT=!º > > {äµ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 > ----------------------------- I'm sorry if offend and reposting. The problem is easy understand. What do we detect ISO-8859 series? <?php var_dump("\xca"); // What is character? ?> Regards Yuya -- --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------

« previous php.internals (#121859) next »