【问题标题】:wget unicode filename errorswget unicode 文件名错误
【发布时间】:2014-02-25 09:46:34
【问题描述】:

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

wget http://someserver.com/Th%C3%A8me.mov

文件下载后,我可以在我的文件夹中以ThΓ¨me.mov查看它。但是文件的真正专有名称是Thème.mov。我尝试在 wget.ini 中设置restrictfilenames = nocontrol,但没有任何区别。我应该如何“修复它”?

提前致谢。

【问题讨论】:

    标签: windows unicode filenames wget unicode-string


    【解决方案1】:

    这是known bug in wget--restrict-file-names=nocontrol 解决方法仅对 Unix 有帮助。在 Windows 上,您可以做的最好的事情是使用 --restrict-file-names=ascii,这将导致文件名类似于 Th%C3%A8me.mov

    【讨论】:

    • --restrict-file-names=nocontrol 在 OS X 上对我不起作用。知道为什么吗?
    猜你喜欢
    • 2011-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多