为什么PHP内置的web服务器不提供名为é.txt的文件(在Windows上)


Why does PHP built-in web server not serve file called é.txt (on Windows)

我用的是Windows 7

如果我有一个包含我的文件的目录我在该目录下启动内置web服务器

php -S localhost:8000

然后,使用我的web浏览器,我请求URL

http://localhost:8000/é.txt

web服务器响应

Not Found
The requested resource /%C3%A9.txt was not found on this server.

PHP的Windows文件系统支持被破坏了-它不能正确地转换为本机编码。

参见如何在PHP中使用UTF-8字符串使用文件系统函数?