revolution
revolution copied to clipboard
Russian characters are not displayed in the media source
Bug report
Summary
Russian characters are not displayed in the media source, neither in folder names, nor in files.
And they are cut when uploading files to the server (the file in the GIF was called фон_123.png
).
Moreover, if you create a folder with a russian name inside a folder, for example, inside assets
, then another empty assets
folder will appear inside assets
, and so on for any folder.
Perhaps the problem is relevant for other languages as well.
p.s. And it doesn't depend on the upload_translit
setting, as it might seem at first.
Step to reproduce
Try to create a folder, for example, named привет
.
Environment
MODX 3-alpha3
To display russian characters, you must set in the system settings locale = ru_RU.UTF-8
Or change php function basename https://github.com/modxcms/revolution/blob/48af06a07a436ca2f7775a49fc681fa36269e4d5/core/src/Revolution/Sources/modMediaSource.php#L1942