让edtftpnet也支持中文文件名
时间:2011-02-23 来源:幸
解决方法:下载edtftpnet,修改以下代码后重新编译生成,使用新的edtFTPnet.dll。
----------step1--------
需要修改的文件FTPClient.cs
修改位置:
/// <summary>/// The encoding to use when dealing with file and directory paths.
/// </summary>
private Encoding controlEncoding = null;
修改成:

/// The encoding to use when dealing with file and directory paths.
/// </summary>
//xing 2011.2.23 private Encoding controlEncoding = null;
private Encoding controlEncoding = Encoding.GetEncoding("GB2312");
---------step2--------
重新编译生成
相关阅读 更多 +
排行榜 更多 +

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748214895997494.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748214895997494.png" alt="机器人狙击手最新版" />
飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748213241693464.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748213241693464.png" alt="我的枪有子弹最新版" />
飞行射击 下载- 4 <img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0525/1748174029364713.jpg" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0525/1748174029364713.jpg" alt="战斗地带汉化版" />下载58.6 MB · 93℃
1970-01-01
- 5 <img preview="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" alt="超级兔子人联机版手机版" />下载45.51 MB · 91℃
1970-01-01
- 6 <img preview="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" alt="超级兔子人联机版手机版" />下载169.80 MB · 98℃
1970-01-01