GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Issues with special characters in folder/file names

Open mmutee opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

Describe the bug

I found out that folder/file names containing special characters (like # symbol) will be an issue and will remain missing in the editor. This happens on Linux and Windows. This could be handled better, either by warning the user or giving an error. Instead, Gdevelop seems to import the file but then the file is not displayed at all.

gdevelop bug report gdevelop bug report3

Steps to reproduce

1_ try to import an image file with filename containing "#" symbol 2_it won't be displayed in the preview, nor will it show up in level editor 3_if you preview the game, it will appear as a pink block

GDevelop platform

Desktop

GDevelop version

5.3.185

Platform info

OS (e.g. Windows, Linux, macOS, Android, iOS)

OS Version (e.g. Windows 10, macOS 10.15)

Browser(For Web) (e.g. Chrome, Firefox, Safari)

Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)

Additional context

No response

mmutee avatar Jan 15 '24 14:01 mmutee

Thanks for reporting @mmutee I can confirm I reproduce the issue. image

The resource is properly added with the right name. image

But the image loader strips the character from it image

Could be because of encoding or something. We'll take a look

ClementPasteau avatar Jan 18 '24 10:01 ClementPasteau