can a file name contain space or other foreign language?

hello~ as title stated, will there be any issue if a file name ( like png or audio) has a space between them? e.g "town dawn music.ogg" or "char female standing.png"? or it has to be space-less like "town_dawn_music.ogg" "char_female)standing.png"? i have been hearing it should be space-less? but no sure is it apply to folder name only or both file name and folder name.

can can a file name has a foreign language in it? like i have some typed in chinese at very early stage of development..

thx.
There have been several threads about issues with foreign letters.
Same for spaces.

You should avoid them in files and folders.
@jackwu10 preemptively tho however you can write your comment in human languages when writing your plugin 🙂
This is something I eventually asked about and now have to go back and fix.

Here is a link to that thread which includes your question and goes a bit beyond.


So, it seems like you have to be very careful about naming image/audio files or any "asset" files in folders and path names.

I was following the example of how the default MZ files are named in the folders, but then I guess I got lazy and started using spaces in the image file names. So, I have a bunch of images to fix.

When in doubt, you can always look at how the default assets are named in the asset folders. If you follow those examples, I don't think you can go wrong.

Good luck on your projects!
Yes and no.

They usually work if the user has the same system. But when the files need to be extracted on another computer which may have different language settings and may use a different software to manage zip files, it is not granted the file names can be saved.
Something like this may happen:
1737113460657.png


Space: some code may use space as a separator, for example, command line, argument list, but I'm not sure if they happens in MZ, especially when there are plugins.
+: It may be coverted into space on some web server, making the url unusable.
%&: also has special use in url, or maybe some plugins use them like $ and !
(): I recall at least one plugin uses them for counting animation frames?

Original thread: https://forums.rpgmakerweb.com/threads/can-a-file-name-contain-space-or-other-foreign-language.174768/