JDK Chinese fonts are garbled under Linux

https://blog.csdn.net/a19881029/article/details/9031743

Then the font "Arial" must be needed in the jdk (under the $JAVA_HOME/jre/lib/fonts directory)

Since JDK does not have Chinese fonts by default, it will be displayed as garbled characters

You need to manually set it up so that the java application can find the required Chinese fonts

 

Solution:
Upload the required font files to the $JAVA_HOME/jre/lib/fonts directory, and restart tomcat (the required fonts can be found under the window system, taking window 7 as an example: the fonts are saved in C:\Windows \Fonts path)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325446357&siteId=291194637