Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.0
-
None
-
None
-
None
-
Both Win and Linux, jdk1.5 or jdk1.6
Description
while coding as below:
FTPClient ftp = new FTPClient();
int reply;
ftp.connect("10.110.13.18",2001);
ftp.login("user","password");
// ... // transfer files
ftp.type(FTPClient.ASCII_FILE_TYPE);
FTPFile[] temp = ftp.listFiles();
System.out.println(temp.length);
for (int i = 0; i < temp.length; i++)
{
System.out.println(temp[i].getName());
}; //filtered all the files
if the remote ftp server has a Chinese or Japanese file, then it would print a massive text on screen.