Tiny Core Base > TCB Q&A Forum
How to display chinese font in file manager?
GNUser:
Hi lizardidi. I'm sorry to hear you're still having problems.
Today I loaded pcmanfm to see if I can reproduce your problem. I found that pcmanfm can handle chinese characters in filenames just fine. My tests were with pcmanfm as it comes "out of the box" without any special configuration.
I use a UTF-8 locale (specifically, en_US.UTF-8). If no unicode font is loaded, pcmanfm shows chinese filenames as little boxes with numbers (humorously referred to as "tofus"). But if I load a suitable font (e.g., unifont.tcz), close pcmanfm, and reopen pcmanfm, then the chinese filename displays correctly. See the "withoutfont.jpg" and "withfont.jpg" screenshots (attached).
Please, what's the output of these commands?
--- Code: ---$ locale
$ tce-status -i | grep font
$ tce-status -i | grep locale
$ ls -lh /etc/sysconfig/tcedir/optional/mylocale.tcz
$ echo $G_FILENAME_ENCODING
--- End code ---
lizardidi:
https://ibb.co/jLkmmJQ
I attached my desktop here, showing Rox fm on the upper left displaying file name correctly. On the right, Pcmanfm.. Spacefm.. Xfe.. Mc.. Emelfm2... all unable to display the chinese font filename. Really weird behaviour. :o :o :o
I only want to display filename correctly, without changing system language though..
gadget42:
@lizardidi, thanks for that great screenshot! it definitely provides clarification regarding what you are experiencing. still investigating at this end. rox-filer is _doing_something_ or _has_something_ that the others don't. but what? and naturally it will be simple once we figure it out...lol...sigh...
@GNUser, looking at your first screenshot you show the results of "locale" but in the second we don't get to see if that changes in any way after loading unifont.tcz?
gadget42:
@lizardidi, could you attach your small(230b) test file "test****.txt" so i can use the exact same file for testing at my end? thanks.
GNUser:
Hi gadget42. locale is the same in both screenshots.
Hi lizardidi. If you'd like to troubleshoot further, please post the output of the commands in my previous post. If you're happy with Rox and just want to move on, that's fine too :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version