org.apache.ftpserver.listener.nio包里FtpServerProtocolCodecFactory.java
将
new TextLineDecoder(Charset.forName("UTF-8"));
改为:
new TextLineDecoder(Charset.forName("GBK"));
org.apache.ftpserver.impl包里IODataConnection.java
将
writer = new OutputStreamWriter(out, "UTF-8");
改为:
writer = new OutputStreamWriter(out, "GBK");