Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to adjust the garbled code of files uploaded by wiki

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report