How to open file in PHP that has unicode characters in its name?

后端 未结 3 876
不知归路
不知归路 2020-11-30 12:42

For example I have a filename like this - проба.xml and I am unable to open it from PHP script.

If I setup php script to be in utf-8 than all the text in script is u

3条回答
  •  青春惊慌失措
    2020-11-30 13:24

    These are conclusions so far:

    1. PHP 5 can not open filename with unicode characters unless the source filename is unicode.
    2. PHP 5 (at least on windows XP) is not able to process PHP source in unicode.

    Thus the conclusion this not doable in PHP 5.

提交回复
热议问题