Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?
| From: | youkidearitai | Date: | Thu, 30 Nov 2023 00:39:05 +0000 |
| Subject: | Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121867@lists.php.net to get a copy of this message | ||
> Many languages like Rust only support UTF-8
> (https://doc.rust-lang.org/reference/input-format.html), and I don't
> think any new PHP developers will expect PHP to work with non-UTF8
> encodings in the first place.
Hi,
PSR-1 is required use UTF-8.
https://www.php-fig.org/psr/psr-1/
Files MUST use only UTF-8 without BOM for PHP code.
And, Rust is newer than PHP that is very long history.
If we were compare in PHP, almost we would compare language same old
year. Java, Perl, Ruby and Python etc.
(Java's default encoding is UTF-16).
Therefore, I think we should stay with PSR-1 "MUST use only UTF-8 without BOM".
Regards
Yuya
--
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai
-----------------------------