The file name in Tomcat in docker is displayed as a question mark in Chinese

CSDN Q & A 2022-06-24 06:44:39 阅读数:255

The phenomenon and background of the problem

docker Inside tomcat decompression war After package ,WEB-INF/classes There are several templates in the xlsx file , The Chinese characters in the name are displayed as question marks .


Operating environment 、 Software version and other information

The operating system is linux

Tried solutions

linux The host and docker The time in the container has been changed to utf-8, The Chinese file name created manually can also be displayed normally ;tomcat The code of is also utf-8

What I want to achieve


copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you.