办法很简单,只需在form表单中加入下面的话:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<form action="http://h5.dev.ejoyst.com/file/uploadFile" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
File1<input type="file" name="uploadFile"><br/>
<input type="submit" value="提交">
</form>
</html>
然后后台用相同编码格式解码即可,如果是java默认工作空间编码是utf-8,那默认接收已经是utf-8编码