When previewing the text application, garbled characters appear

Problem description
On the file list page, right-click and select [Open Details], and the preview on the right is garbled. It seems that there is a problem with the Chinese display

This seems to be a configuration issue, where should I configure it?

nextcloud ver:28.0.9
php:8.1.14
web server:nginx

The empty triangles suggest to me that the font used for generating TXT/MD previews/ thumbnails does not support Chinese.

Looking at the code, the fonts for the previews are handled differently than for the user interface itself.

After some research, I’ve re-opened an old Issue on GitHub covering this topic because it may have been overlooked / closed mistakenly: Characters from Korean, Chinese, etc don’t show in txt/md file previews · Issue #4198 · nextcloud/server · GitHub

Though I may be missing something myself… I would have expected this problem to have been pointed out more frequently. Feel free to subscribe to that issue on GH for now.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.