avatar
Articles
331
Tags
204
Categories
24
Home
Archieves
Tags
Categories
BIM
Devs
Link
About
graptolite's Devspring mvc 解决文件名中文乱码的问题 Back to Home
Search
Home
Archieves
Tags
Categories
BIM
Devs
Link
About

spring mvc 解决文件名中文乱码的问题

Created2020-04-16|Updated2026-02-05|devother
|Post Views:
仅提供中文版本

需要对文件名称进行转码file.getName().getBytes("utf-8"), "iso-8859-1")加入iso-8859-1的转码
参考链接:1.https://blog.csdn.net/li_ainy/article/details/88077756
2.https://blog.csdn.net/clj198606061111/article/details/20743769?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2

Author: Broccoli
Link: https://graptolite.ai/spring-mvc-filename-encoding/
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
springmvc
cover of previous post
Previous
Java heap space Indiscufficient Memory Issue
The main reason is that the memory of my cloud server is too small, and the downloaded content caused the memory overflow problem. The following are the solutions referenced when solving this problem. https://zazalu.space/2019/09/17/java-memory-error-solution-Theoretically/https://www.cnblogs.com/jpfss/p/10782120.html
cover of next post
Next
Spring MVC Solve Chinese Filename Garbled Issue
Need to transcode filename file.getName().getBytes("utf-8"), "iso-8859-1") add iso-8859-1 transcodingReference link: 1.https://blog.csdn.net/li_ainy/article/details/880777562.https://blog.csdn.net/clj198606061111/article/details/20743769?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2
Related Articles
cover
2019-11-19
SpringMvc Mapping Cannot Enter Issue
When creating project file upload/download function, due to accidental deletion of maven package, later retrieved via updata. After series of retrievals found project suddenly 404;Checked mapping and index.xml files no problem. Then remembered retrieving WebContext in updata in project found Web.xml inside was not set, causing project unable to map. After deleting folder project returned to normal. Record it to prevent forgetting how to fix after accidental hand slip in future!!!
avatar
Broccoli
graptolite.ai
Articles
331
Tags
204
Categories
24
Announcement
欢迎访问!右上角可切换中英文。感谢您的阅读!
Recent Posts
Google Chrome Built-in Multimodal Model (Gemini Nano) Local Setup Guide
Google Chrome Built-in Multimodal Model (Gemini Nano) Local Setup Guide2026-02-05
Google Chrome 内置多模态模型(Gemini Nano)本地部署指南
Google Chrome 内置多模态模型(Gemini Nano)本地部署指南2026-02-05
Gemini in Chrome 浏览器AI助手
Gemini in Chrome 浏览器AI助手2026-02-05
Gemini in Chrome: Your Personal AI Assistant Inside the Browser
Gemini in Chrome: Your Personal AI Assistant Inside the Browser2026-02-05
Chrome DevTools AI Assistant Guide
Chrome DevTools AI Assistant Guide2026-02-05
© 2025 - 2026 By BroccoliFramework Hexo 8.1.1|Theme Butterfly 5.5.2
Search
Loading Database