revolution icon indicating copy to clipboard operation
revolution copied to clipboard

Russian characters are not displayed in the media source

Open Ruslan-Aleev opened this issue 3 years ago • 1 comments

Bug report

Summary

Russian characters are not displayed in the media source, neither in folder names, nor in files.

browser_ru

And they are cut when uploading files to the server (the file in the GIF was called фон_123.png).

browser_ru_2

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.

browser_ru_3

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

Ruslan-Aleev avatar Apr 21 '21 09:04 Ruslan-Aleev

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

webinmd avatar Feb 20 '22 20:02 webinmd