jsp表单
<%@ page contentType="text/html; charset=gb2312"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>title</title> </head> <body> <form action="" enctype="multipart/form-data" method="post"> 上传用户:<input type="text" name="username"><br/> <p><input type="file" name="file1"></p> <p> <input type="file" name="file1"></p> <input type="submit">|<input type="reset"> </form> </body> </html>
解决中文编码乱码问题