Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-27-2011, 05:46 PM
|
#1
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Rep:
|
display chinese characters in file browser
Using Fluxbox, have tried this in XFCE and KDE. Chinese characters display properly in whatever browser I use online. I do need to see some in the file manager and this is not working. I have installed the following chinese display files from Slack -
kde-l10n-zh_CN-4.4.3-noarch-1.txz
kde-l10n-zh_TW-4.4.3-noarch-1.txz
wqy-zenhei-font-ttf-0.8.38_1-noarch-1.txz
No results so far. What am I missing here?
Last edited by patostevens; 01-29-2011 at 09:52 PM.
|
|
|
|
01-27-2011, 05:49 PM
|
#2
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,651
|
Have you edited /etc/profile.d/lang.sh and set your $LANG variable to something other than en_US? en_US.UTF-8, perhaps?
|
|
|
|
01-27-2011, 06:46 PM
|
#3
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
Thanks Dugan. I did as you suggested and now am getting a few chinese characters and then a lot of black diamonds with a question mark in the center of them. Better than before but didn't quite cure the problem.
|
|
|
|
01-27-2011, 10:02 PM
|
#4
|
|
Member
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403
Rep:
|
Generally Qt programs have very good support for different character sets. It could be that you need to find a font with better Chinese support. Try KDE's system settings to see if changing things works. kde-l10n-zh only gives you KDE in the Chinese language, you don't need it to actually see Chinese text or filenames.
|
|
|
|
01-28-2011, 09:56 AM
|
#5
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
I probably wasn't clear enough to start with. My specific need is to be able to see chinese filenames with the native characters in them. (Got to do with some files for a Kindle.) I have tried running kde and using dolphin and got no different results.
|
|
|
|
01-28-2011, 07:52 PM
|
#6
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
Tried the system settings in KDE - no luck. All I need to do is see some filenames in the file manager. Any suggestions?
|
|
|
|
01-29-2011, 01:02 AM
|
#7
|
|
Member
Registered: Jun 2010
Posts: 93
Rep:
|
edit /etc/profile.d/lang.sh
Quote:
# en_US is the Slackware default locale:
# export LANG=en_US
export LANG=en_US.UTF-8
|
You need to logout and log in to see the effect.
I don't use KDE, maybe try another file manager such as thunar. It works in thunar using what I've described above.
|
|
|
|
01-29-2011, 01:14 AM
|
#8
|
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 409
Rep:
|
Are your Chinese-named files located in a EXT or a ntfs partition? If they are in ntfs, please add "locale=zh_CN.UTF-8" to /etc/fstab(assume your desktop encoding is UTF-8)
Good Luck.
Last edited by grissiom; 01-29-2011 at 01:14 AM.
Reason: fix typo
|
|
|
|
01-29-2011, 09:41 AM
|
#9
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
linuxs64: did log out/in. Slight improvement as noted in my second post in this thread.
grissiom: the files are on a regular linux partition - no NTFS.
|
|
|
|
01-29-2011, 09:57 AM
|
#10
|
|
Member
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403
Rep:
|
What font are you using in KDE? Could you past a couple of the problematic file names here so we can try to reproduce the problem?
|
|
|
|
01-29-2011, 06:56 PM
|
#11
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
Here is a list of two of the directory names
pat[~]$ dir /home/pat/Duokan/
12Ô-31Ý+·¢Ý+ÝæÝ¾ 12ÔÂ31ºÅ·¢²¼°æ±¾
In any browser, these names are showing in chinese characters. It's just when it hits my system that the display goes south.
|
|
|
|
01-29-2011, 08:51 PM
|
#12
|
|
Member
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403
Rep:
|
Perhaps in copying the file from its source the filename became corrupted due to conversion problems coming from a filesystem not using unicode?
Can you create a new file with Chinese characters? I just created a new file called "汉语⁄漢語" (which is Chinese for Chinese apparently!) in Dolphin and on the commandline using urxvt. No problems.
|
|
|
|
01-29-2011, 09:51 PM
|
#13
|
|
Member
Registered: Dec 2007
Location: Kennewick,WA
Distribution: Slackware 13.1
Posts: 168
Original Poster
Rep:
|
That sounds likely. I think this guy's file names are just corrupted. Oh well - thanks for all the effort and ideas.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|