Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5portal
Commits
524708dd
Commit
524708dd
authored
Aug 08, 2018
by
周添尉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下载乱码
parent
8bb2542c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
actAction.java
src_jwapp/com/jw/app/store/action/actAction.java
+5
-4
actAction.java
src_jwapp/com/jw/app/store/action/personal/actAction.java
+5
-4
actAction.java
src_system/com/gaowj/uploadfile/actAction.java
+5
-4
No files found.
src_jwapp/com/jw/app/store/action/actAction.java
View file @
524708dd
...
...
@@ -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
();
...
...
src_jwapp/com/jw/app/store/action/personal/actAction.java
View file @
524708dd
...
...
@@ -634,10 +634,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
();
...
...
src_system/com/gaowj/uploadfile/actAction.java
View file @
524708dd
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment