commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eisen Wang (JIRA)" <j...@apache.org>
Subject [jira] Created: (NET-240) FTPClient can't support Chinese or Japanese language in listFiles()
Date Fri, 07 Nov 2008 07:58:44 GMT
FTPClient can't support Chinese or Japanese language in listFiles()
-------------------------------------------------------------------

                 Key: NET-240
                 URL: https://issues.apache.org/jira/browse/NET-240
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Both Win and Linux,  jdk1.5 or jdk1.6
            Reporter: Eisen Wang
            Priority: Critical


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message