上传文件的文件时,文件名变成乱码了,我用jspsmart.upload组件上传文件时,文件名变成乱码了?
代码
login.jsp
///////////////////////////////////////////////////////
<%@ taglib uri= "http://java.sun.com/jsf/core " prefix= "f " %>
<%@ taglib uri= "http://java.sun.com/jsf/html " prefix= "h " %>
<%@ taglib uri= "http://myfaces.apache.org/tomahawk " prefix= "t "%>
<%@ page import= "util.HTMLFilter,java.util.ArrayList " %>
<%@ page language= "java " contentType= "text/html; charset=UTF-8 "
pageEncoding= "UTF-8 "%>
<%@ page import= "org.apache.commons.fileupload.* "%>
<%@ page import= "java.util.* "%>
<%@ page import= "java.io.*,com.jspsmart.upload.* "%>
<html xmlns= "http://www.w3.org/1999/xhtml ">
<link REL= "SHORTCUT ICON " href= "images/pbi_logo.gif ">
<f:loadBundle basename= "#{headerMgrBean.languageFileName} "
var= "customLanguge "> </f:loadBundle>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=UTF-8 ">
<link href= "default.css " rel= "stylesheet " type= "text/css "/>
<style type= "text/css ">
<!--
BODY {
BACKGROUND-COLOR: #cccccc
}
.STYLE3 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body style= "TABLE-LAYOUT: fixed; WORD-BREAK: break-all " topMargin=6
marginwidth= "10 " marginheight= "10 ">
<p align= "center "> <font color= "#660000 " size= "5 " face= "隶书 "> 上传文件选择 </font> </p>
<form method= "post " ACTION= "7-7.jsp " enctype= "multipart/form-data ">
<input type= "hidden " name= "Test " value= "good " />
<table width = "75% " border= "1 " align= "center ">
<tr> <td>
<div align= "center "> 1.
<input type= "file " name= "FILE1 " size= "30 " > </div>
</td> </tr>
<tr> <td>
<div align= "center "> 2.
<input type= "file " name= "FILE2 " size= "30 " > </div>
</td> </tr>
<tr> <td>
<div align= "center "> 3.
<input type= "file " name= "FILE3 " size= "30 " > </div>
</td> </tr>
<tr> <td>
<div align= "center "> 4.
<input type= "file " name= "FILE4 " size= "30 " > </div>
</td> </tr>
<tr>