avatar
Articles
317
Tags
187
Categories
21
Home
Archieves
Tags
Categories
BIM
Devs
Link
About
Broccoli's DevSpring MVC Solve Chinese Filename Garbled Issue Back to Home
Search
Home
Archieves
Tags
Categories
BIM
Devs
Link
About

Spring MVC Solve Chinese Filename Garbled Issue

Created2020-04-16|Updated2026-01-08|devother
|Post Views:
仅提供English版本

Need to transcode filename file.getName().getBytes("utf-8"), "iso-8859-1") add iso-8859-1 transcoding
Reference link: 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://xlx.dev/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内存不足问题
主要原因为自己的云服务器内存过小下载的内容导致的内存超出问题,以下是解决此问题时参考的解决方案 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 解决文件名中文乱码的问题
需要对文件名称进行转码file.getName().getBytes("utf-8"), "iso-8859-1")加入iso-8859-1的转码参考链接: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
xlx.dev
Articles
317
Tags
187
Categories
21
Announcement
欢迎访问!右上角可切换中英文。感谢您的阅读!
Recent Posts
Quickly Migrate Blog Using YingDao
Quickly Migrate Blog Using YingDao2026-01-07
使用影刀快速迁移博客
使用影刀快速迁移博客2026-01-07
LLaMA-Factory Gradio Environment Configuration
LLaMA-Factory Gradio Environment Configuration2026-01-04
LLaMA-Factory Gradio 环境配置
LLaMA-Factory Gradio 环境配置2026-01-04
VS Code SSH Remote Connection Issues
VS Code SSH Remote Connection Issues2026-01-04
© 2025 - 2026 By BroccoliFramework Hexo 8.1.1|Theme Butterfly 5.5.2
Search
Loading Database