Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ?
| From: | Claude Pache | Date: | Tue, 28 Nov 2023 20:09:42 +0000 |
| Subject: | Re: Deprecate declare(encoding='...') + zend.multibyte + zend.script_encoding + zend.detect_unicode ? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121830@lists.php.net to get a copy of this message | ||
> Le 28 nov. 2023 à 20:56, Kamil Tekiela <tekiela246@gmail.com> a écrit :
>
>> Convert your PHP source files to UTF-8.
>
> If the solution is as easy as just converting the encoding of the
> source file, then why did we even need to have this setting at all?
> Why did PHP parser support encodings that demanded the introduction of
> this declare?
It is not necessary as simple: because your code base may contain literal strings, and changing the
encoding of the source file will effectively change the contents of the strings.
—Claude