What factors make PHP Unicode-incompatible?

前端 未结 7 1458
执笔经年
执笔经年 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 common extensions do not have unicode support or (even worse) you "need to know" that a string contains unicode/utf-8 sequences, like for example XMLReader. And it can make quite a difference wether PHP's glob() calls FindFirstFileA or FindFirstFileW on win32.
    Another (much smaller but surprisingly often being the source of annoyance) issue are BOMs which PHP do not recognize.

提交回复
热议问题