URL url = new URL(filedownload+URLEncoder.encode(filedname,"utf-8"));
URLConnection conn = url.openConnection();
InputStream in = conn.getInputStream();
URL 当为中文路径时,conn.getInputStream 会有 FileNotFoundException
处理方法
URL url = new URL(“http://xxx/”+URLEncoder.encode("中文名部分","utf-8"));
搞定~