Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jonas1312 opened this issue Feb 1, 2021 · 2 comments
Open

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

Jonas1312 opened this issue Feb 1, 2021 · 2 comments

Comments

@Jonas1312
Copy link

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

@surrim
Copy link
Owner

surrim commented Feb 1, 2021

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
Copy link
Owner

surrim commented Jun 17, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants