mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

If the file name contains Chinese characters, it cannot be deleted by delete_file.lua

Open scetus opened this issue 5 years ago • 4 comments

like “1080P_4000K_289924082 - 副本.mp4”

scetus avatar Apr 04 '20 14:04 scetus

I'm on Win10 and this is not a problem for me. Is this still a problem for you and what OS are you on?

bitingsock avatar Mar 05 '21 22:03 bitingsock

I'm on Win10 and this is not a problem for me. Is this still a problem for you and what OS are you on?

I think it works only with "English characters", it fails with Spanish words like árbol. I use Windows 7 64 bits SP1

jimmy-1000 avatar Jun 10 '21 22:06 jimmy-1000

确认:文件名是中文或俄文的视频文件无法删除,英文名文件可以删除 win10 64位 中文系统

RallyQ avatar Apr 09 '22 03:04 RallyQ

Can you try the following? replace the line os.remove(v) with os.execute(string.format('del "%s"', v)). Does it now delete these files?

zenyd avatar Jan 23 '24 01:01 zenyd