vlc-delete icon indicating copy to clipboard operation
vlc-delete copied to clipboard

Video not deleted if file name contains an emoji (windows)

Open Jonas1312 opened this issue 5 years ago • 2 comments

Hi,

The extension does not work if the file name contains an emoji (testtest ❤️.mp4 for example).

lua info: [vlc-delete] removing: C:/Users/Jonas/Desktop/testtest ❤️.mp4
lua info: [vlc-delete] windows detected
lua info: [vlc-delete] before string.gsub: C:/Users/Jonas/Desktop/testtest ❤️.mp4
lua info: [vlc-delete] after string.gsub: C:\Users\Jonas\Desktop\testtest ❤️.mp4
main info: playlist is empty
lua info: [vlc-delete] error: File does not exist

fileExists("\"" .. file .. "\"") fails to detect the file, but I don't know why...

Thanks

Jonas1312 avatar Feb 01 '21 07:02 Jonas1312

Thanks for this issue. Probability Windows needs another charset to handle ❤️ in file names. I can't reconstruct or fix at the moment, but if you know any LuaScript expert, let him/her know 😉

surrim avatar Feb 01 '21 08:02 surrim

It's probably the best to wait for Lua 5.3 support ("VLC uses Lua 5.1"). See Lua: how to make os.rename & os.remove work with filenames containing unicode characters?

surrim avatar Jun 17 '23 17:06 surrim