pathEncoder = URLEncoder.encode(img_path+savename, "UTF-8"); //用这个
如果还不行 就用
OutputStreamWriter osw = null;
osw = new OutputStreamWriter(new FileOutputStream(img_path+savename), "UTF-8");
要转码,例:
String str = new String(savename
.getBytes("GB2312"), "gbk");