Today, the test project is launched, and there is such a function point: uploading ppt to pictures. However, garbled characters appeared. At first, I suspected that it was a problem with the system encoding, but:
echo $LONG
I found that it was utf-8 , there seems to be no problem, I continued to search the log information in the program, and found that the content taken out from the ppt was not garbled. Looking at the code, I found that the Chinese font was used when generating the picture, and the guess was that the font was not installed.
So by:
fc-list :lang=zh
Display is empty.
When looking at my linux server, I found:
AR PL UMing TW:style=Light
AR PL UMing HK:style=Light
AR PL UMing CN:style=Light
AR PL UKai TW MBE:style=Book
AR PL UKai CN:style=Book
AR PL UKai HK:style=Book
AR PL UKai TW: style=Book Wenquanyi
Zheng Hei, WenQuanYi Zen Hei,WenQuanYi Zen Hei:style=RegularWenQuanYi Equal Width Zheng Hei , WenQuanYi Equal Width Zheng Hei , WenQuanYi Zen Hei Mono:style=Regular AR PL UMing TW MBE: style=Light Wenquanyi dot matrix is black,Wenquanyi dot matrix is black , WenQuanYi Zen Hei Sharp:style=Regular
In this way, my guess is more certain. I have found a lot on the Internet, and most of them use the following methods:
yum install fontconfig-devel
yum install fontconfig
yum install fonts-chinese
But when I execute it, it may not be installed successfully due to source problems.
Continue to Baidu Google and find:
yum groupinstall chinese-support
reboot.
When executing the font query command, it has the same result as above. Start the project and find the garbled problem solved!
本文原创,转载请注明出处:http://www.eziep.net:80/details/127.html