Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to adjust the garbled code of files uploaded by wiki

Shulou Source: shulou.com Published: 2022-06-01 04:09:55 10月04日 Update

How to adjust the garbled code of files uploaded by wiki? in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

It is mainly because the file is uploaded under Windows when uploading files, and when previewing, it is under the environment of linux. Because there is no Microsoft font under linux, the font of the document cannot be recognized when previewing, so there is garbled. So the solution is as follows.

1. Install the desired font first Reference: [install Chinese fonts in Centos] (https://blog.51cto.com/13641879/2435545)2, find setenv.sh in the confluence installation directory, such as / opt/atlassian/confluence/bin, find CATALINA_OPTS, add a line CATALINA_OPTS= "- Dconfluence.document.conversion.fontpath=/usr/share/fonts/chinese/ ${CATALINA_OPTS}" 3, empty all cached document files in the viewfile directory and shared-home/dcl-document directory under confluence's home. If it is not empty, confluence will still show a box when previewing the old file, and only the new file will be normal. 4. Restart confluence on OK. This is the answer to the question about how to adjust the garbled code of the file uploaded by wiki. I hope the above content can help you to a certain extent, if you still have a lot of doubts to be solved, you can follow the industry information channel to learn more related knowledge.

Tags: Files fonts garbled time directories questions adjustments documents methods more help answers easy easy one line Chinese fonts content only guys buddies Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft MariaDB Shulou Technology OPPO Reno