wget unicode 文件名错误

kst*_*tis 4 windows unicode filenames wget unicode-string

我在 Windows 7 计算机上使用 wget(静态构建)来下载带有 unicode 文件名(法语)的视频文件。

\n\n
wget http://someserver.com/Th%C3%A8me.mov\n
Run Code Online (Sandbox Code Playgroud)\n\n

文件下载后,我可以在文件夹中以Th\xce\x93\xc2\xa8me.mov. 然而该文件的真正正确名称是Th\xc3\xa8me.mov. 我尝试过restrictfilenames = nocontrol在 wget.ini 中进行设置,但没有任何区别。我应该如何“修复它”?

\n\n

提前致谢。

\n

nwe*_*hof 5

这是wget 中的一个已知错误。该--restrict-file-names=nocontrol解决方法仅对 Unix 有帮助。在 Windows 上,您能做的最好的事情就是使用--restrict-file-names=ascii它将产生像Th%C3%A8me.mov.