Commit 5fd9581a by 罗绍泽

乱码

parent b049fdf4
......@@ -447,10 +447,11 @@ public class actAction extends BasicAction {
String uuid = request.getParameter("uuid");
String uploadnew=request.getParameter("uploadnew");
String uploadpath=request.getParameter("uploadpath");
String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
super.setEncoding1(downloadFilenameEncode1);
super.setEncoding2(downloadFilenameEncode2);
// String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
// String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
// super.setEncoding1(downloadFilenameEncode1);
// super.setEncoding2(downloadFilenameEncode2);
response.setCharacterEncoding("utf-8");
if(new File(uploadpath+File.separator+uploadnew).exists()==false){
db2fileStore(uuid,uploadpath,uploadnew,false);
ret_download = super.download();
......
......@@ -587,10 +587,11 @@ public class actAction extends BasicAction {
String uuid = request.getParameter("uuid");
String uploadnew=request.getParameter("uploadnew");
String uploadpath=request.getParameter("uploadpath");
String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
super.setEncoding1(downloadFilenameEncode1);
super.setEncoding2(downloadFilenameEncode2);
// String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
// String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
// super.setEncoding1(downloadFilenameEncode1);
// super.setEncoding2(downloadFilenameEncode2);
response.setCharacterEncoding("utf-8");
if(new File(uploadpath+File.separator+uploadnew).exists()==false){
db2fileStore(uuid,uploadpath,uploadnew,false);
ret_download = super.download();
......
......@@ -345,10 +345,11 @@ public class actAction extends BasicAction {
String uuid = request.getParameter("uuid");
String uploadnew=request.getParameter("uploadnew");
String uploadpath=request.getParameter("uploadpath");
String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
super.setEncoding1(downloadFilenameEncode1);
super.setEncoding2(downloadFilenameEncode2);
// String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
// String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
// super.setEncoding1(downloadFilenameEncode1);
// super.setEncoding2(downloadFilenameEncode2);
response.setCharacterEncoding("utf-8");
if(new File(uploadpath+"/"+uploadnew).exists()==false){
db2file(uuid,uploadpath,uploadnew,false);
ret_download = super.download();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment