将GBK编码的filename 转换成utf-8形式的newFilename String newFilename = new String(filename.getBytes("GBK"), "UTF-8"); File newFile = new File(newFilename);