php readdir problem with japanese language file name

后端 未结 6 1642
野性不改
野性不改 2020-11-29 13:55

I have the following code



        
6条回答
  •  情话喂你
    2020-11-29 14:19

    As @bobince mentioned, PHP returns filenames in the specified encoding for System Locale, which is used by non-Unicode aware applications. If the character doesn't exist in the current system encoding, the filename will contain '?' instead and will not be accessible.

    You can try installing php-wfio.dll at https://github.com/kenjiuno/php-wfio, and refer to files via the wfio:// protocol.

提交回复
热议问题