JAVA文件中文乱码找不到路径两种实现方式
1.URLDecoder.decode(path,“utf-8”)
String path = ResourceUtils.getURL(uploadFolder + "\\" + fileInfo.getLocation()).getPath();
File file = new File( URLDecoder.decode(path, "utf-8"));
2.File.toURI().toASCIIString()
File file = new File(path + location);
// 转码
file.toURI().toASCIIString();