LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
Search this Thread
Old 09-23-2004, 01:14 AM   #1
fossilet
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Ubuntu, Fedora, CentOS
Posts: 33

Rep: Reputation: 0
How to make Chinese characters display correctly in Gentoo?


Hi all,

I intsalled gentoo from stage3. All is OK but I cannot see Chinese Characters well in gnome, mozilla, or the terminal. They are either displayed as ??? or squares containing four hex numbers. All my locale is POSIX. I am wondering if I have to rebuild all my packages to have Chinese support. Someone tells me I have to add +nls +cjk flags and recompile all the packages. Any help will be greatly appreciated.

Regards,

Fossilet
 
Old 09-23-2004, 02:24 AM   #2
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
I do this in slackware but it should probally work in gentoo also.I would download any international fonts (msgothic,mssong) then make a director in /usr/share/fonts/TTF. Run as root in the font directory /usr/X11R6/bin/mkfontscale,/usr/X11R6/bin/mkfontdir,/usr/X11R6/bin/fc-cache.Then edit your X11F86Config-4 or xorg.conf and add the new font path and you should be able to display international fonts.
 
Old 09-23-2004, 06:56 AM   #3
fossilet
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Ubuntu, Fedora, CentOS
Posts: 33

Original Poster
Rep: Reputation: 0
I followed your instructions, Hitokiri. Thanks very much. I can use fcitx to input Chinese and see Chinese web pages. But problem remains when I mount a fat partition with the option iocharset=gb2312. Chinese filenames in the partition still cannot be displayed properly.
BTW: your desktop is cool.
 
Old 09-23-2004, 11:01 AM   #4
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
I got this from a Faq .

-o nls={NAME}

NTFS stores all file and directory names in Unicode which can represent any character from any language. By default the Linux NTFS driver converts the names to ASCII which is OK for some people, but no good if your languages includes letters like or .

NLS (Native Language Support) controls how characters are displayed. You can choose either utf8 which, like Unicode, can represent all characters, or your own codepage, e.g. iso8859-1 (Western Europe), iso8859-2 (Central Europe), gb2312 (Simplified Chinese), iso8859-8 (Hebrew). Below are some example mount commands:

mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=utf8
mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=iso8859-2
mount /dev/hda1 /mnt/windows -t ntfs -r -o nls=gb2312

Ignore the ntfs parts.Try searching for NLS and you might find a better answer.

Someone got it working it debian here .
Try adding codepage=936 before iocharset=gb2312.

Last edited by Hitokiri_X; 09-23-2004 at 11:23 AM.
 
Old 10-31-2004, 08:21 AM   #5
CIO_BlackRainbo
Member
 
Registered: Jun 2003
Location: /mnt/eth/us/ma/bos/cws
Distribution: Debian SID
Posts: 32

Rep: Reputation: 15
You might want to look at http://dev.gentoo.org/~liquidx/chinese/chinese-guide.html.


Or just to install the fonts the gentoo way,

Code:
emerge arphicfonts twmoefonts zh-kcfonts
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My system can't display chinese correctly! lonelyghost317 Linux - Software 1 06-29-2005 08:26 PM
KDE cannot display Chinese correctly cawwt Mandriva 0 05-07-2005 12:06 PM
problem with some Chinese characters shockers_jm Linux - Software 0 03-10-2005 04:18 PM
Konqueror does not display Chinese characters correctly whitefox Slackware 3 03-01-2004 08:40 PM
how to make linux display Japanese characters? digizer0 Linux - General 20 04-12-2003 06:45 PM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration