Download & lt;/a>
Modify & lt;/a>
Delete & lt;/a>
Image file name column that ${files. The file} has been in the page to Chinese value, according to the "script" now I'm going to click on the download transfer the ${files. The file} name to the background, can receive normal English, the Chinese is only the code
@ Controller
Public class DownLoadController {
@ RequestMapping (value="https://bbs.csdn.net/download")
Public String download (it request, HttpServletResponse response) throws IOException, ServletException {
Request. SetCharacterEncoding (" utf-8 ");//this line not
FilePath String filePath=request. The getParameter (" ");
System. The out. Println (filePath);//gibberish in Chinese, English is normal