curl 命令无法上传包含 unicode 字符的文件

curl 命令无法上传包含 unicode 字符的文件

我正在尝试将文件上传到 FTP 站点,但当文件名包含 unicode 字符时,curl 似乎无法上传它。

curl -u %username%:%password% -T "LENOVO - São Paulo.txt" ftp://ftp.drivehq.com/Maquinas/ 

这是我收到的错误:

curl: Can't open 'LENOVO - São Paulo.txt'!
curl: try 'curl --help' or 'curl --manual' for more information
curl: (26) Failed to open/read local data from file/application

当文件没有 unicode 字符时,一切正常。有什么解决办法吗?

答案1

下载新的 curl 版本 7.80 后,它能够上传带有 unicode 字符的文件。我使用的是版本 7.76...

相关内容