Re: [PHP-DEV] [Discussion] Scalar Object Strings and Multibyte Encodings

2019-06-20 Thread Rowan Collins
On 20/06/2019 16:36, Mark Randall wrote: "Hello".substr(1) // would work as expected regardless of encoding As I always point out when "multi-byte support" or "Unicode support" is discussed, it's often ambiguous just what should be "expected". A lot of systems go from "each character is one

Re: [PHP-DEV] [Discussion] Scalar Object Strings and Multibyte Encodings

2019-06-20 Thread Benjamin Morel
This reminds me of the discussions around PHP 6 :-) Without commenting on scalar objects (which looks promising), it would be nice if PHP could also ship with a *non-disableable* multibyte extension (most likely mbstring, which I think is more widespread than iconv). Currently a lot of code has to

[PHP-DEV] [Discussion] Scalar Object Strings and Multibyte Encodings

2019-06-20 Thread Mark Randall
Greetings, I have noticed a lot of recent comments, posts, and even Nikita's recent PHP Russia video discussing scalar objects, a potential future feature that I believe already has widespread support, and would have widespread usage once it arrived. I think most scalars would be self explan