I use json to store data.
If the name of this json is written in Cyrillic, then such a file is not loaded into HTML5 (everything works fine in the simulator and in Android).
The text itself, which is entirely in Cyrillic, does not cause any problems.
The only problem is opening a file with a Cyrillic name.
For example:
“Ресурсы.json” - problem
“Ресурсы/Resources.json” - problem
“Resources.json” - NO problem
“Resources/Resources.json” - NO problem
The browser console displays the following error:
ERROR: Runtime error
?:0: attempt to concatenate field ‘?’ (a nil value)
stack traceback:
errorString from io.open:
no such file or directory
A similar problem is loading any resources (images, etc.) from any folders with a Cyrillic name.
For example:
“Изображения/Logo.png” - problem
“Images/Logo.png” - NO problem
Is there a way to fix this problem without changing the names to Latin?