Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于中文乱码问题 #16

Closed
sunny1025g opened this issue Apr 23, 2023 · 13 comments
Closed

关于中文乱码问题 #16

sunny1025g opened this issue Apr 23, 2023 · 13 comments
Assignees
Labels
enhancement New feature or request

Comments

@sunny1025g
Copy link

您好,
首先感谢您辛苦制作镜像。
在使用您的制作的confluence过程中,添加代码的预览界面中文显示为框框
请您下次更新docker镜像的时候能不能安装中文字体包呢,谢谢
apt install -y fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-gkai00mp fonts-arphic-ukai fonts-arphic-uming

@haxqer
Copy link
Owner

haxqer commented Apr 25, 2023

谢谢,我另起一个分支

@haxqer haxqer self-assigned this Apr 25, 2023
@haxqer haxqer added the enhancement New feature or request label Apr 25, 2023
@haxqer
Copy link
Owner

haxqer commented Apr 25, 2023

done!
https://github.com/haxqer/confluence/tree/latest-zh

感谢~

@sunny1025g
Copy link
Author

done! https://github.com/haxqer/confluence/tree/latest-zh

感谢~

谢谢,我另起一个分支

谢谢,我另起一个分支

再次感谢作者,zh分支已经安装测试,现在中文显示正常了
20230426130929

@sunny1025g
Copy link
Author

已经测试最新的8.2.1和8.2.1-zh都正常使用,7.19.8-zh出现故障,无法进入配置界面,如下图所示
20230426194805
7.19.8版本也无法进去自己安装字体包了,底层系统好像是使用的Debian9,是不是因为版本过低,有些源不支持了?不知道把底层更新到debian11是否正常,7.19.7一切正常哟

@haxqer
Copy link
Owner

haxqer commented Apr 27, 2023

感谢提醒,刚测试了下,确实有问题。

已经修复了,麻烦 docker pull 7.19.8-zh 试下

@haxqer
Copy link
Owner

haxqer commented Apr 27, 2023

8.2.2-zh 已更新

@sunny1025g
Copy link
Author

7.19.8-zh
修复的7.19.8-zh,7.19.8和更新的8.2.2-zh,8.2.2四个版本都已经部署测试,目前使用正常,再次感谢

@dreammis
Copy link

已经安装的,可以直接更改compose 做到替换吗?中文问题,自己搞还是比较麻烦的,要弄字体

@haxqer
Copy link
Owner

haxqer commented May 11, 2023

最稳妥的方案: confluence 管理界面有备份功能,然后用 docker cp 把备份文件copy到宿主机, 例如 docker cp confluence-srv:/var/confluence/temp/xmlexport-20230511-114410-73.zip xmlexport-20230511-114410-73.zip
新启动一台 confluence,初始化的时候选择从备份文件恢复,然后把 备份的zip文件上传上去就行了

其他方案(我没有尝试过): 选择同版本的 confluence, 直接替换即可

建议先尝试 最稳妥的方案, 直接替换compose可能有风险

@dreammis
Copy link

没听你的建议,结果崩了😂
原因是我是version 7.x->8.x,字符集有问题。
害得我挨个替换table, columns,database的字符集
如果是8,升级应该问题不大,低版本注意字符集设置
How to Fix the Collation and Character Set of a MySQL Database manually

@haxqer
Copy link
Owner

haxqer commented May 12, 2023

有 7.x 的中文版,7.19.8-zh
@sunny1025g 已经测试过了
我忘记写在 Readme 文档里面了

@mocuishlelin
Copy link

https://blog.csdn.net/weixin_40647516/article/details/124632994
https://soulteary.com/2019/04/19/talk-about-confluence-with-docker.html
使用windows的字体也可以解决哈,适合本地安装或不想升级的伙伴们

@codermmd
Copy link

Ubuntu参考:把win中的字体cp到/usr/share/fonts, 然后volume添加/usr/share/fonts:/usr/share/fonts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants