Why the embedded PHP web server does not serve a file named é.txt (on Windows)

I am on Windows 7

If I have a directory containing my é.txt file and I start the embedded web server in this directory

php -S localhost:8000

then using my web browser i am requesting a url

http://localhost:8000/é.txt

web server is responding

Not Found

The requested resource /%C3%A9.txt was not found on this server.
+2
source share
1 answer

Support for the Windows Windows file system is broken - it is not correctly translated to the source encoding.

See How to use file system functions in PHP using UTF-8 strings?

0
source

Source: https://habr.com/ru/post/1690160/


All Articles