Projects onedev server Issues #789
#789  Chinese characters can not be displayed correctly in k8s deploy mode
Released
since20I8 opened 5 months ago

222.png

Robin Shen commented 5 months ago

这应该跟你数据库的字符集有关,改成UTF8应该就可以了。

since20I8 commented 5 months ago

我在k8s环境中部署,直接使用的helm install。
在mysql容器中看字符集是latin1,我看看怎么批量改下吧。

另外如果是字符集问题建议直接给mysql配置加上--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci这个两个参数。

Robin Shen changed title 5 months ago
Previous Value Current Value
Code Comment only support english
Chinese characters can not be displayed correctly in k8s deploy mode
since20I8 commented 5 months ago

其实日文韩文都不行🤣

Robin Shen commented 5 months ago

加上你说的两个选项应该就可以了。

OneDev changed state to 'Closed' 5 months ago
Previous Value Current Value
Open
Closed
OneDev commented 5 months ago

State changed as code fixing the issue is committed

OneDev changed state to 'Released' 5 months ago
Previous Value Current Value
Closed
Released
OneDev commented 5 months ago

State changed as build #2803 (7.3.15) is successful

Robin Shen commented 5 months ago

这个升级只针对新创建的数据库有效。对老版本升级上来的,需要通过mysql命令把原来数据导出,数据库重建,再导入数据。

since20I8 commented 5 months ago

已测试,没问题。

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Seen Builds
Issue Votes (0)
Watchers (4)
Reference
issue onedev/server#789
Please wait...
Page is in error, reload to recover