On Fri, 18 Jun 2021 at 9:48 am, Marc Bennewitz <marc@mabe.berlin> wrote:

> Not sure but what happens if you have like a DB connection in big5,
> sjis, ... and add an integer as ASCII char into it? But that's the only
> edge case I can think of.




The integer character code points are the same in all three. PHP represents
integers with the western arabic numerals 0-9, so as long as their code
points are the same, nothing changes between any of the charsets.

While I’ve not checked all other character encodings (far too many), the
ones I did check were the most-used character encodings and they all used
extended ASCII (that includes big5 and Shift JIS).

The only exception is that there is something called EBCDIC (an old IBM
character encoding descended from punch cards), but it’s very deprecated
and PHP doesn’t work with it anyway - PHP explicitly has not supported it
since 8.0

“EBCDIC targets are no longer supported, though it's unlikely that they
were still working in the first place.”

https://www.php.net/manual/en/migration80.other-changes.php

Reply via email to