master
philip 3 years ago
parent 29e51c9f05
commit ad947ed227

@ -68,11 +68,11 @@ public class FileController {
String path = request.getParameter("Path");
try {
//服务器发布
String coderPath = new String(path.getBytes("ISO8859_1"));
String newPath = new String(coderPath.getBytes("GBK"), FTPClient.DEFAULT_CONTROL_ENCODING);
//String coderPath = new String(path.getBytes("ISO8859_1"));
//String newPath = new String(coderPath.getBytes("GBK"), FTPClient.DEFAULT_CONTROL_ENCODING);
in = ftpClient.getFtp(path);
if(null == in){
in = ftpClient.getFtp(new String(coderPath.getBytes("UTF-8"), FTPClient.DEFAULT_CONTROL_ENCODING));
in = ftpClient.getFtp(new String(path.getBytes("UTF-8"), FTPClient.DEFAULT_CONTROL_ENCODING));
}
//本地测试

Loading…
Cancel
Save