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