Jelajahi Sumber

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

Dail 1 tahun lalu
induk
melakukan
f10e3cfb01

TEMPAT SAMPAH
.vs/Welling_Motor_Debug_Tool/v17/.suo


TEMPAT SAMPAH
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)
                 {

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb