Because through the form of frequently downloaded files, then write the name of some Latin, Cyrillic and others, but does not take an element of the Cyrillic alphabet. I decided to read this issue properly. The file filesystemstorage.php replaced
on
Everything works fine, downloaded files with names like in Latin and Cyrillic. But the names on Cyrillic have a problem, when you send the mail, and when displayed on the front End he cuts the first word, then there was "my work" to become "_work". This situation only with the Cyrillic alphabet with the Latin names of all good. Files with names in Cyrillic remarkably saved on the server and displayed correctly when editing entries.
if you write the name of the file "Latin Cyrillic", then come in the form of a normal "Latin_Cyrillic", not only takes up the first letters of the space Cyrillic. Perhaps in a certain script, you must also add the Cyrillic alphabet in the regular expression
Tell me what went wrong.
Code:
$filename = preg_replace('#[^a-zA-Z0-9_\-\.]#', '_', $filename);
on
Code:
$filename = preg_replace('#[^a-zA-Z0-9?-??-???_\-\.]#u', '_', $filename);
Everything works fine, downloaded files with names like in Latin and Cyrillic. But the names on Cyrillic have a problem, when you send the mail, and when displayed on the front End he cuts the first word, then there was "my work" to become "_work". This situation only with the Cyrillic alphabet with the Latin names of all good. Files with names in Cyrillic remarkably saved on the server and displayed correctly when editing entries.
if you write the name of the file "Latin Cyrillic", then come in the form of a normal "Latin_Cyrillic", not only takes up the first letters of the space Cyrillic. Perhaps in a certain script, you must also add the Cyrillic alphabet in the regular expression
Tell me what went wrong.
Last edited: