Sfoglia il codice sorgente

解决删除文件名存在中文报错的问题。

Dail 1 anno fa
parent
commit
f10e3cfb01

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.1.9.exe


+ 1 - 1
Welling_Motor_Debug_Tool/ftp.cs

@@ -288,7 +288,7 @@ namespace Welling_Motor_Debug_Tool
                 ftp.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
                 ftp.UsePassive = true;
                 response = ftp.GetResponse();
-                reader = new StreamReader(response.GetResponseStream(), Encoding.Default);
+                reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
                 string line = reader.ReadLine();
                 while (line != null)
                 {

BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb