K
K
Konstantin Malyarov2017-05-16 12:50:08
PHP
Konstantin Malyarov, 2017-05-16 12:50:08

Why doesn't he follow a link that contains Cyrillic?

http://127.0.0.1/pages/Администратор/Пользователи.php

There is a link with Cyrillic, when you go, it gives such a warning
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/server/data/htdocs/pages/Разработчик/Пользователи.php' (include_path='.;c:\server\data\htdocs\pages') in Unknown on line 0

How to fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Arseny Sokolov, 2017-05-16
@ArsenBespalov

Do not use national characters in addresses and file names, I understand that you want domestic ones, but it’s better not to do this for a number of reasons, if only because the encoding in the OS and in the script code can be different and then file access can also throw an error, in short, never do that.

B
Boris Korobkov, 2017-05-16
@BorisKorobkov

Cyrillic in the URL is possible, but:
1. it must be encoded. Then the web server redirects all requests to index.php and parses the requested address there.
2. It is safer to use only Latin letters, Arabic numerals, underscores and dots in file names.

V
Viktor Taran, 2017-05-16
@shambler81

Cyrillic is only in your imagination, 90% of the world does not even think about the existence of anything other than Latin.
So it's not surprising that all this crap works crookedly.
Do not use Russian letters on Linux systems, mine this rule is already 50 years old
And you are still there.
And if you use Apache ports in Windows, don't be surprised that the reason remains.
Now why, because there are no Russian letters long live punicode https://hb.by/punycode-converter.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question