Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the application deployed by was on linux is garbled?

Shulou Source: shulou.com Published: 2022-06-03 06:24:46 10月05日 Update

What if the application deployed by was on linux is garbled? This problem may be often seen in our daily work. Through this question, I hope you can gain more. Here are the steps to solve this problem.

Linux was garbled?

Applications deployed by was on linux sometimes have garbled code, so you can try to install Chinese fonts to solve the problem.

Specific methods:

1. You can see a lot of fonts in java's $JAVA_HOME/jre/lib/fonts/ (if it's websphere, there's a built-in jvm). Create a new directory here, named fallback, and put simsun.ttf in this directory.

# mkdir fallback#sudo cp. / your font dir/simsun.ttf fallback/

two。 The permission to the font file is readable

# cd fallback/#sudo chmod 644 simsun.ttf

3. Then execute under the fallback directory:

# mkfontscale & & mkfontdir

At this point, the fonts.dir and fonts.scale files are generated in the fallback directory, and the contents of fonts.scale are appended to the fonts.dir of the parent directory.

# su#cat fonts.scale > >.. / fonts.dir

4. If not, fc-cache flushes the font cache.

# fc-cache

The above is the solution to the garbled code of the application deployed by was on linux, and you need to use it yourself in order to understand the details. If you want to know more about it, welcome to follow the industry information channel!

Tags: Directory garbled font application content problem situation file more what to do no Chinese font hands-on method name that is method daily work time permission Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker Microsoft MariaDB Shulou Technology