-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
6.3.3, 6.5.1, 6.11.0, 7.1.0, 7.3.1, 7.7.3, 7.8.0, 7.13.0, 7.19.4, 8.0.0, 8.0.3, 7.13.13, 8.2.1, 8.5.14, 9.0.0
-
38
-
Severity 3 - Minor
-
1
-
Summary:
Confluence Status Macro titles display as square characters in the edit mode with Chinese/Japanese/Korean (CJK) fonts
Steps to Reproduce
- Create a page in latest Confluence version
- Edit the page
- Use status macro whose title is in Chinese "用户编辑了这个页面"
- Check that the title gets garbled in the Edit mode
Expected results
The Macro title should display Chinese characters in the edit mode.
Actual Results
Attached is the screen shot which shows the garbled characters
Cause
In edit mode the status macro is rendered as an image, where are in view mode it's HTML span.
URL for the image in edit is
and in edit mode we can see the HTML is
<img class="editor-inline-macro" height="18" width="88" src="/plugins/servlet/status-macro/placeholder?title=%E7%94%A8%E6%88%B7%E7%BC%96%E8%BE%91%E4%BA%86%E8%BF%99%E4%B8%AA%E9%A1%B5%E9%9D%A2" data-macro-name="status" data-macro-parameters="title=用户编辑了这个页面" data-macro-schema-version="1" data-macro-id="4101f99e-6663-4475-9e3f-45ba83058259">
In view mode the HTML is
<span class="status-macro aui-lozenge conf-macro output-inline" data-hasbody="false" data-macro-name="status">用户编辑了这个页面</span>
Workaround
- Remove if there are any Arial fonts exist in the system with fc-list command.
- Issue may arise even if the Arial font is not installed.
如果你能看到这个页面,欢迎你,来自中国的朋友!
针对中文有几处问题:
1、宏的标题显示方框;
step1. 检查 以下地址无法正确加载出字符:
<conf-host>/plugins/servlet/status-macro/placeholder?title=%E6%9C%AA%E5%BC%80%E5%A7%8B&colour=Grey
step2.安装:
step3.重启服务。
2、doc文件预览显示方框;
step1. 增加环境变量:
### 字体目录来自上一步(可自定义) sed -i '118i CATALINA_OPTS="-Dconfluence.document.conversion.fontpath=/usr/share/fonts/truetype/wqy \${CATALINA_OPTS}"' /opt/atlassian/confluence/bin/setenv.sh
step2. 重启服务。
3、pdf导出显示方框;
http://<conf-host>/admin/flyingpdf/configurepdflanguagesupport.action
—
There are a few issues with displaying Chinese characters that Chinese users should be aware of:
1. Square boxes appearing in macro titles
Step 1: Check if Chinese fonts are already installed by running the following command:
Step 2: Install the fonts. You can use the Alibaba Cloud mirror to install the fonts. Run the following commands:
Step 3: Restart the service.
2. Square boxes appearing in doc file previews
Step 1: Add an environment variable by running the following command:
### The font directory comes from the previous step (can be customized) sed -i '118i CATALINA_OPTS="-Dconfluence.document.conversion.fontpath=/usr/share/fonts/truetype/wqy \${CATALINA_OPTS}"' /opt/atlassian/confluence/bin/setenv.sh
Step 2: Restart the service.
3. Square boxes appearing in PDF exports
Step 1: Go to the PDF export language support page:
http://<conf-host>/admin/flyingpdf/configurepdflanguagesupport.action
Step 2: Upload the Chinese fonts on the page.