简体   繁体   English

phpseclib get 正在更改我的文件名并放置特殊字符

[英]phpseclib get is changing my file name and puts special characters

Im downloading files from sftp using phpseclib get method, but it adds special characters to the file name.我使用 phpseclib get 方法从 sftp 下载文件,但它在文件名中添加了特殊字符。 Ive notice it only does that if the file has a long name.我注意到只有在文件名很长的情况下才会这样做。 Ive tried removing '_' but is still puts those characters.我试过删除“_”,但仍然把这些字符。

$sftp->get($order, 'Modules\*' . $order))

original name:原名:

Master-124251-SALES_​CMPLT​_NOTIFICATION-01102019-102045.csv

output:输出:

Master-124251-SALES_​CMPLT​_NOTIFICATION-01102019-102045.csv

Any solutions for this?对此有任何解决方案吗? thanks guys谢谢你们

So i figure it out with the reminder of one person.所以我通过一个人的提醒弄清楚了。 I just added this to my server config我刚刚将它添加到我的服务器配置中

<add key="AddDefaultCharset" value="utf8_general_ci"/>

And it works just fine.它工作得很好。 Hope it helps anyone.希望它可以帮助任何人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM