Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

edfFTPj-2.0.4 does not support Simplified Chinese

by xiaoyu1985ban » Wed Mar 18, 2009 1:59 am

no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Wed Mar 18, 2009 10:44 am

Hi
I have fixed the problem temporarily by replacing DEFAULT_ENCODING in class FTPClinet with "GBK",while its original value is "US-ASCII".But I want to know if there is another way to solve this problem,or fix this bug。
Thanks
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: edfFTPj-2.0.4 does not support Simplified Chinese

by support2 » Wed Mar 18, 2009 10:55 am

So in summary, it works for FTPClient but not for FileTransferClient?
no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Wed Mar 18, 2009 1:23 pm

That's it ! It only works after I change DEFAULT_ENCODING in Class FTPClient,using "GBK" instead of "US-ASCII". It does't work even if I have invoked FileTransferClient.getAdvancedSettings().setControlEncoding("GBK2312") before uploading
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Wed Mar 18, 2009 6:40 pm

Must be a bug, we'll take a look.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Mar 19, 2009 12:25 pm

no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Thu Mar 19, 2009 12:40 pm

no avatar
User

firewallindia

Posts

11

Joined

Mon Jun 06, 2011 11:12 pm

it shows unsupported encoding exception

by firewallindia » Tue Jun 07, 2011 12:20 am

when i set ftpclient.setControlEncoding("GBK2312"),
this is what i get


java.io.UnsupportedEncodingException: GBK2312
at sun.io.Converters.getConverterClass(Converters.java:218)
at sun.io.Converters.newConverter(Converters.java:251)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:68)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:224)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:210)
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:77)
at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
at com.enterprisedt.net.ftp.FTPControlSocket.initStreams(FTPControlSocket.java:432)
at com.enterprisedt.net.ftp.FTPControlSocket.<init>(FTPControlSocket.java:383)
at com.enterprisedt.net.ftp.FTPControlSocket.<init>(FTPControlSocket.java:355)
at com.enterprisedt.net.ftp.FTPClient.connect(FTPClient.java:958)
at com.adventnet.fa.server.imp.FTPUtil.getFTPClient(FTPUtil.java:41)
at Ftw.main(Ftw.java:20)
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: it shows unsupported encoding exception

by support2 » Tue Jun 07, 2011 9:20 am

no avatar
User

firewallindia

Posts

11

Joined

Mon Jun 06, 2011 11:12 pm

by firewallindia » Tue Jun 07, 2011 10:04 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Wed Jun 08, 2011 8:49 am

no avatar
User

firewallindia

Posts

11

Joined

Mon Jun 06, 2011 11:12 pm

by firewallindia » Wed Jun 08, 2011 10:21 pm

I use jdk1.5. It supports utf-8 and other encodings
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Jun 09, 2011 8:24 am

Please don't post the same issue on two threads. Keep it to the other thread.
no avatar
User

firewallindia

Posts

11

Joined

Mon Jun 06, 2011 11:12 pm

by firewallindia » Thu Jun 09, 2011 3:30 pm


Who is online

Users browsing this forum: No registered users and 96 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign