What factors make PHP Unicode-incompatible?

前端 未结 7 1454
执笔经年
执笔经年 2020-11-28 04:59

I am able use UTF-8 characters just fine in my scripts.

As a matter of fact it is possible to have names of variables and functions contain Unicode characters.

7条回答
  •  日久生厌
    2020-11-28 05:46

    Many of the string functions are just thin wrappers around C library equivalents, which also treat everything as a sequence of bytes. Another reason is that PHP carries around a lot of needless backward-compatibility baggage and thus gets stuck with bad design decisions from 3&4.

    Maybe with 5.3's namespaces they'll finally have a way of phasing the old functions out.

提交回复
热议问题